cfsd_fscache.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
// ------------------------------------------------------------
//
// fscache.h
//
// Include file for the fscache class.
//
#pragma ident "%Z%%M% %I% %E% SMI"
// Copyright (c) 1994 by Sun Microsystems, Inc.
#ifndef CFSD_FSCACHE
#define CFSD_FSCACHE
int i_fscacheid; // fscache identifier
int i_refcnt; // refs to object
int i_modify; // changed when modified
int i_ofd; // message file descriptor
int i_again_seq; // seq number of head modify op
int i_pingserver();
~cfsd_fscache();
void fscache_lock();
void fscache_unlock();
void fscache_refinc() { i_refcnt++; }
void fscache_refdec() { i_refcnt--; }
int fscache_refcnt() { return i_refcnt; }
void fscache_setup();
int fscache_fscacheid() { return i_fscacheid; }
int fscache_connected() { return i_connected; }
int fscache_reconcile() { return i_reconcile; }
int fscache_changes() { return i_changes; }
void fscache_changes(int tt);
int fscache_modify() { return i_modify; }
int fscache_threaded() { return i_threaded; }
int fscache_threadid() { return i_threadid; }
int fscache_mounted() { return i_mounted; }
int fscache_disconnectable() { return i_disconnectable; }
int fscache_simdisconnect(int disconnect);
int fscache_unmount();
void fscache_process();
};
#endif /* CFSD_FSCACHE */