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