xref: /xnu-11215.61.5/bsd/vfs/vfs_support.h (revision 4f1223e81cd707a65cc109d0b8ad6653699da3c4)
1*4f1223e8SApple OSS Distributions /*
2*4f1223e8SApple OSS Distributions  * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
3*4f1223e8SApple OSS Distributions  *
4*4f1223e8SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*4f1223e8SApple OSS Distributions  *
6*4f1223e8SApple OSS Distributions  * This file contains Original Code and/or Modifications of Original Code
7*4f1223e8SApple OSS Distributions  * as defined in and that are subject to the Apple Public Source License
8*4f1223e8SApple OSS Distributions  * Version 2.0 (the 'License'). You may not use this file except in
9*4f1223e8SApple OSS Distributions  * compliance with the License. The rights granted to you under the License
10*4f1223e8SApple OSS Distributions  * may not be used to create, or enable the creation or redistribution of,
11*4f1223e8SApple OSS Distributions  * unlawful or unlicensed copies of an Apple operating system, or to
12*4f1223e8SApple OSS Distributions  * circumvent, violate, or enable the circumvention or violation of, any
13*4f1223e8SApple OSS Distributions  * terms of an Apple operating system software license agreement.
14*4f1223e8SApple OSS Distributions  *
15*4f1223e8SApple OSS Distributions  * Please obtain a copy of the License at
16*4f1223e8SApple OSS Distributions  * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*4f1223e8SApple OSS Distributions  *
18*4f1223e8SApple OSS Distributions  * The Original Code and all software distributed under the License are
19*4f1223e8SApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*4f1223e8SApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*4f1223e8SApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*4f1223e8SApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*4f1223e8SApple OSS Distributions  * Please see the License for the specific language governing rights and
24*4f1223e8SApple OSS Distributions  * limitations under the License.
25*4f1223e8SApple OSS Distributions  *
26*4f1223e8SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*4f1223e8SApple OSS Distributions  */
28*4f1223e8SApple OSS Distributions /*
29*4f1223e8SApple OSS Distributions  * Copyright (c) 1998 Apple Computer, Inc.  All rights reserved.
30*4f1223e8SApple OSS Distributions  *
31*4f1223e8SApple OSS Distributions  *  File:  vfs/vfs_support.h
32*4f1223e8SApple OSS Distributions  *
33*4f1223e8SApple OSS Distributions  *	Prototypes for the default vfs routines. A VFS plugin can use these
34*4f1223e8SApple OSS Distributions  *	functions in case it does not want to implement all. These functions
35*4f1223e8SApple OSS Distributions  *	take care of releasing locks and free up memory that they are
36*4f1223e8SApple OSS Distributions  *	supposed to.
37*4f1223e8SApple OSS Distributions  *
38*4f1223e8SApple OSS Distributions  * HISTORY
39*4f1223e8SApple OSS Distributions  *  18-Aug-1998 Umesh Vaishampayan ([email protected])
40*4f1223e8SApple OSS Distributions  *      Created.
41*4f1223e8SApple OSS Distributions  */
42*4f1223e8SApple OSS Distributions 
43*4f1223e8SApple OSS Distributions #ifndef _VFS_VFS_SUPPORT_H_
44*4f1223e8SApple OSS Distributions #define _VFS_VFS_SUPPORT_H_
45*4f1223e8SApple OSS Distributions 
46*4f1223e8SApple OSS Distributions #include <sys/cdefs.h>
47*4f1223e8SApple OSS Distributions #include <sys/param.h>
48*4f1223e8SApple OSS Distributions #include <sys/systm.h>
49*4f1223e8SApple OSS Distributions #include <sys/kernel.h>
50*4f1223e8SApple OSS Distributions #include <sys/file.h>
51*4f1223e8SApple OSS Distributions #include <sys/stat.h>
52*4f1223e8SApple OSS Distributions #include <sys/proc.h>
53*4f1223e8SApple OSS Distributions #include <sys/conf.h>
54*4f1223e8SApple OSS Distributions #include <sys/mount.h>
55*4f1223e8SApple OSS Distributions #include <sys/vnode.h>
56*4f1223e8SApple OSS Distributions #include <sys/vnode_if.h>
57*4f1223e8SApple OSS Distributions #include <sys/malloc.h>
58*4f1223e8SApple OSS Distributions #include <sys/dirent.h>
59*4f1223e8SApple OSS Distributions 
60*4f1223e8SApple OSS Distributions __BEGIN_DECLS
61*4f1223e8SApple OSS Distributions extern int nop_create(struct vnop_create_args *ap);
62*4f1223e8SApple OSS Distributions extern int err_create(struct vnop_create_args *ap);
63*4f1223e8SApple OSS Distributions 
64*4f1223e8SApple OSS Distributions extern int nop_whiteout(struct vnop_whiteout_args *ap);
65*4f1223e8SApple OSS Distributions extern int err_whiteout(struct vnop_whiteout_args *ap);
66*4f1223e8SApple OSS Distributions 
67*4f1223e8SApple OSS Distributions extern int nop_mknod(struct vnop_mknod_args *ap);
68*4f1223e8SApple OSS Distributions extern int err_mknod(struct vnop_mknod_args *ap);
69*4f1223e8SApple OSS Distributions 
70*4f1223e8SApple OSS Distributions extern int nop_open(struct vnop_open_args *ap);
71*4f1223e8SApple OSS Distributions extern int err_open(struct vnop_open_args *ap);
72*4f1223e8SApple OSS Distributions 
73*4f1223e8SApple OSS Distributions extern int nop_close(struct vnop_close_args *ap);
74*4f1223e8SApple OSS Distributions extern int err_close(struct vnop_close_args *ap);
75*4f1223e8SApple OSS Distributions 
76*4f1223e8SApple OSS Distributions extern int nop_access(struct vnop_access_args *ap);
77*4f1223e8SApple OSS Distributions extern int err_access(struct vnop_access_args *ap);
78*4f1223e8SApple OSS Distributions 
79*4f1223e8SApple OSS Distributions extern int nop_getattr(struct vnop_getattr_args *ap);
80*4f1223e8SApple OSS Distributions extern int err_getattr(struct vnop_getattr_args *ap);
81*4f1223e8SApple OSS Distributions 
82*4f1223e8SApple OSS Distributions extern int nop_setattr(struct vnop_setattr_args *ap);
83*4f1223e8SApple OSS Distributions extern int err_setattr(struct vnop_setattr_args *ap);
84*4f1223e8SApple OSS Distributions 
85*4f1223e8SApple OSS Distributions extern int nop_read(struct vnop_read_args *ap);
86*4f1223e8SApple OSS Distributions extern int err_read(struct vnop_read_args *ap);
87*4f1223e8SApple OSS Distributions 
88*4f1223e8SApple OSS Distributions extern int nop_write(struct vnop_write_args *ap);
89*4f1223e8SApple OSS Distributions extern int err_write(struct vnop_write_args *ap);
90*4f1223e8SApple OSS Distributions 
91*4f1223e8SApple OSS Distributions extern int nop_ioctl(struct vnop_ioctl_args *ap);
92*4f1223e8SApple OSS Distributions extern int err_ioctl(struct vnop_ioctl_args *ap);
93*4f1223e8SApple OSS Distributions 
94*4f1223e8SApple OSS Distributions extern int nop_select(struct vnop_select_args *ap);
95*4f1223e8SApple OSS Distributions extern int err_select(struct vnop_select_args *ap);
96*4f1223e8SApple OSS Distributions 
97*4f1223e8SApple OSS Distributions extern int nop_exchange(struct vnop_exchange_args *ap);
98*4f1223e8SApple OSS Distributions extern int err_exchange(struct vnop_exchange_args *ap);
99*4f1223e8SApple OSS Distributions 
100*4f1223e8SApple OSS Distributions extern int nop_revoke(struct vnop_revoke_args *ap);
101*4f1223e8SApple OSS Distributions extern int err_revoke(struct vnop_revoke_args *ap);
102*4f1223e8SApple OSS Distributions 
103*4f1223e8SApple OSS Distributions extern int nop_mmap(struct vnop_mmap_args *ap);
104*4f1223e8SApple OSS Distributions extern int err_mmap(struct vnop_mmap_args *ap);
105*4f1223e8SApple OSS Distributions 
106*4f1223e8SApple OSS Distributions extern int nop_fsync(struct vnop_fsync_args *ap);
107*4f1223e8SApple OSS Distributions extern int err_fsync(struct vnop_fsync_args *ap);
108*4f1223e8SApple OSS Distributions 
109*4f1223e8SApple OSS Distributions extern int nop_remove(struct vnop_remove_args *ap);
110*4f1223e8SApple OSS Distributions extern int err_remove(struct vnop_remove_args *ap);
111*4f1223e8SApple OSS Distributions 
112*4f1223e8SApple OSS Distributions extern int nop_link(struct vnop_link_args *ap);
113*4f1223e8SApple OSS Distributions extern int err_link(struct vnop_link_args *ap);
114*4f1223e8SApple OSS Distributions 
115*4f1223e8SApple OSS Distributions extern int nop_rename(struct vnop_rename_args *ap);
116*4f1223e8SApple OSS Distributions extern int err_rename(struct vnop_rename_args *ap);
117*4f1223e8SApple OSS Distributions 
118*4f1223e8SApple OSS Distributions extern int nop_mkdir(struct vnop_mkdir_args *ap);
119*4f1223e8SApple OSS Distributions extern int err_mkdir(struct vnop_mkdir_args *ap);
120*4f1223e8SApple OSS Distributions 
121*4f1223e8SApple OSS Distributions extern int nop_rmdir(struct vnop_rmdir_args *ap);
122*4f1223e8SApple OSS Distributions extern int err_rmdir(struct vnop_rmdir_args *ap);
123*4f1223e8SApple OSS Distributions 
124*4f1223e8SApple OSS Distributions extern int nop_symlink(struct vnop_symlink_args *ap);
125*4f1223e8SApple OSS Distributions extern int err_symlink(struct vnop_symlink_args *ap);
126*4f1223e8SApple OSS Distributions 
127*4f1223e8SApple OSS Distributions extern int nop_readdir(struct vnop_readdir_args *ap);
128*4f1223e8SApple OSS Distributions extern int err_readdir(struct vnop_readdir_args *ap);
129*4f1223e8SApple OSS Distributions 
130*4f1223e8SApple OSS Distributions extern int nop_readdirattr(struct vnop_readdirattr_args *ap);
131*4f1223e8SApple OSS Distributions extern int err_readdirattr(struct vnop_readdirattr_args *ap);
132*4f1223e8SApple OSS Distributions 
133*4f1223e8SApple OSS Distributions extern int nop_readlink(struct vnop_readlink_args *ap);
134*4f1223e8SApple OSS Distributions extern int err_readlink(struct vnop_readlink_args *ap);
135*4f1223e8SApple OSS Distributions 
136*4f1223e8SApple OSS Distributions extern int nop_inactive(struct vnop_inactive_args *ap);
137*4f1223e8SApple OSS Distributions extern int err_inactive(struct vnop_inactive_args *ap);
138*4f1223e8SApple OSS Distributions 
139*4f1223e8SApple OSS Distributions extern int nop_reclaim(struct vnop_reclaim_args *ap);
140*4f1223e8SApple OSS Distributions extern int err_reclaim(struct vnop_reclaim_args *ap);
141*4f1223e8SApple OSS Distributions 
142*4f1223e8SApple OSS Distributions 
143*4f1223e8SApple OSS Distributions extern int nop_strategy(struct vnop_strategy_args *ap);
144*4f1223e8SApple OSS Distributions extern int err_strategy(struct vnop_strategy_args *ap);
145*4f1223e8SApple OSS Distributions 
146*4f1223e8SApple OSS Distributions extern int nop_pathconf(struct vnop_pathconf_args *ap);
147*4f1223e8SApple OSS Distributions extern int err_pathconf(struct vnop_pathconf_args *ap);
148*4f1223e8SApple OSS Distributions 
149*4f1223e8SApple OSS Distributions extern int nop_advlock(struct vnop_advlock_args *ap);
150*4f1223e8SApple OSS Distributions extern int err_advlock(struct vnop_advlock_args *ap);
151*4f1223e8SApple OSS Distributions 
152*4f1223e8SApple OSS Distributions 
153*4f1223e8SApple OSS Distributions extern int nop_allocate(struct vnop_allocate_args *ap);
154*4f1223e8SApple OSS Distributions extern int err_allocate(struct vnop_allocate_args *ap);
155*4f1223e8SApple OSS Distributions 
156*4f1223e8SApple OSS Distributions extern int nop_bwrite(struct vnop_bwrite_args *ap);
157*4f1223e8SApple OSS Distributions extern int err_bwrite(struct vnop_bwrite_args *ap);
158*4f1223e8SApple OSS Distributions 
159*4f1223e8SApple OSS Distributions extern int nop_pagein(struct vnop_pagein_args *ap);
160*4f1223e8SApple OSS Distributions extern int err_pagein(struct vnop_pagein_args *ap);
161*4f1223e8SApple OSS Distributions 
162*4f1223e8SApple OSS Distributions extern int nop_pageout(struct vnop_pageout_args *ap);
163*4f1223e8SApple OSS Distributions extern int err_pageout(struct vnop_pageout_args *ap);
164*4f1223e8SApple OSS Distributions 
165*4f1223e8SApple OSS Distributions extern int nop_searchfs(struct vnop_searchfs_args *ap);
166*4f1223e8SApple OSS Distributions extern int err_searchfs(struct vnop_searchfs_args *ap);
167*4f1223e8SApple OSS Distributions 
168*4f1223e8SApple OSS Distributions extern int nop_copyfile(struct vnop_copyfile_args *ap);
169*4f1223e8SApple OSS Distributions extern int err_copyfile(struct vnop_copyfile_args *ap);
170*4f1223e8SApple OSS Distributions 
171*4f1223e8SApple OSS Distributions extern int nop_blktooff(struct vnop_blktooff_args *ap);
172*4f1223e8SApple OSS Distributions extern int err_blktooff(struct vnop_blktooff_args *ap);
173*4f1223e8SApple OSS Distributions 
174*4f1223e8SApple OSS Distributions extern int nop_offtoblk(struct vnop_offtoblk_args *ap);
175*4f1223e8SApple OSS Distributions extern int err_offtoblk(struct vnop_offtoblk_args *ap);
176*4f1223e8SApple OSS Distributions 
177*4f1223e8SApple OSS Distributions extern int nop_blockmap(struct vnop_blockmap_args *ap);
178*4f1223e8SApple OSS Distributions extern int err_blockmap(struct vnop_blockmap_args *ap);
179*4f1223e8SApple OSS Distributions __END_DECLS
180*4f1223e8SApple OSS Distributions 
181*4f1223e8SApple OSS Distributions #endif  /* _VFS_VFS_SUPPORT_H_ */
182