FBSD: Add osi_fbsd_checkinuse
[openafs.git] / src / afs / FBSD / osi_prototypes.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9 /*
10  * osi_prototypes.h
11  *
12  * Exported support routines.
13  */
14 #ifndef _OSI_PROTO_H_
15 #define _OSI_PROTO_H_
16
17 /* osi_file.c */
18 extern afs_rwlock_t afs_xosi;
19
20 /* osi_misc.c */
21 extern int osi_lookupname(char *aname, enum uio_seg seg, int followlink,
22                           struct vnode **vpp);
23 extern void *osi_fbsd_alloc(size_t size, int dropglobal);
24 extern void osi_fbsd_free(void *p);
25
26 /* osi_vfsops.c */
27 int afs_init(struct vfsconf *vfc);
28 int afs_uninit(struct vfsconf *vfc);
29 #if defined(AFS_FBSD80_ENV)
30 extern int afs_statfs(struct mount *mp, struct statfs *abp);
31 #else
32 extern int afs_statfs(struct mount *mp, struct statfs *abp, struct thread *td);
33 #endif
34
35 extern int osi_fbsd_checkinuse(struct vcache *avc);
36
37 #endif /* _OSI_PROTO_H_ */