]> git.saurik.com Git - apple/xnu.git/blob - bsd/vfs/vfs_support.h
xnu-344.21.74.tar.gz
[apple/xnu.git] / bsd / vfs / vfs_support.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
27 *
28 * File: vfs/vfs_support.h
29 *
30 * Prototypes for the default vfs routines. A VFS plugin can use these
31 * functions in case it does not want to implement all. These functions
32 * take care of releasing locks and free up memory that they are
33 * supposed to.
34 *
35 * HISTORY
36 * 18-Aug-1998 Umesh Vaishampayan (umeshv@apple.com)
37 * Created.
38 */
39
40 #ifndef _VFS_VFS_SUPPORT_H_
41 #define _VFS_VFS_SUPPORT_H_
42
43 #include <sys/param.h>
44 #include <sys/systm.h>
45 #include <sys/namei.h>
46 #include <sys/resourcevar.h>
47 #include <sys/kernel.h>
48 #include <sys/file.h>
49 #include <sys/stat.h>
50 #include <sys/buf.h>
51 #include <sys/proc.h>
52 #include <sys/conf.h>
53 #include <sys/mount.h>
54 #include <sys/vnode.h>
55 #include <sys/malloc.h>
56 #include <sys/dirent.h>
57 #include <vm/vm_pageout.h>
58
59 extern int nop_create(struct vop_create_args *ap);
60 extern int err_create(struct vop_create_args *ap);
61
62 extern int nop_whiteout(struct vop_whiteout_args *ap);
63 extern int err_whiteout(struct vop_whiteout_args *ap);
64
65 extern int nop_mknod(struct vop_mknod_args *ap);
66 extern int err_mknod(struct vop_mknod_args *ap);
67
68 extern int nop_mkcomplex(struct vop_mkcomplex_args *ap);
69 extern int err_mkcomplex(struct vop_mkcomplex_args *ap);
70
71 extern int nop_open(struct vop_open_args *ap);
72 extern int err_open(struct vop_open_args *ap);
73
74 extern int nop_close(struct vop_close_args *ap);
75 extern int err_close(struct vop_close_args *ap);
76
77 extern int nop_access(struct vop_access_args *ap);
78 extern int err_access(struct vop_access_args *ap);
79
80 extern int nop_getattr(struct vop_getattr_args *ap);
81 extern int err_getattr(struct vop_getattr_args *ap);
82
83 extern int nop_setattr(struct vop_setattr_args *ap);
84 extern int err_setattr(struct vop_setattr_args *ap);
85
86 extern int nop_getattrlist(struct vop_getattrlist_args *ap);
87 extern int err_getattrlist(struct vop_getattrlist_args *ap);
88
89 extern int nop_setattrlist(struct vop_setattrlist_args *ap);
90 extern int err_setattrlist(struct vop_setattrlist_args *ap);
91
92 extern int nop_read(struct vop_read_args *ap);
93 extern int err_read(struct vop_read_args *ap);
94
95 extern int nop_write(struct vop_write_args *ap);
96 extern int err_write(struct vop_write_args *ap);
97
98 extern int nop_lease(struct vop_lease_args *ap);
99 extern int err_lease(struct vop_lease_args *ap);
100
101 extern int nop_ioctl(struct vop_ioctl_args *ap);
102 extern int err_ioctl(struct vop_ioctl_args *ap);
103
104 extern int nop_select(struct vop_select_args *ap);
105 extern int err_select(struct vop_select_args *ap);
106
107 extern int nop_exchange(struct vop_exchange_args *ap);
108 extern int err_exchange(struct vop_exchange_args *ap);
109
110 extern int nop_revoke(struct vop_revoke_args *ap);
111 extern int err_revoke(struct vop_revoke_args *ap);
112
113 extern int nop_mmap(struct vop_mmap_args *ap);
114 extern int err_mmap(struct vop_mmap_args *ap);
115
116 extern int nop_fsync(struct vop_fsync_args *ap);
117 extern int err_fsync(struct vop_fsync_args *ap);
118
119 extern int nop_seek(struct vop_seek_args *ap);
120 extern int err_seek(struct vop_seek_args *ap);
121
122 extern int nop_remove(struct vop_remove_args *ap);
123 extern int err_remove(struct vop_remove_args *ap);
124
125 extern int nop_link(struct vop_link_args *ap);
126 extern int err_link(struct vop_link_args *ap);
127
128 extern int nop_rename(struct vop_rename_args *ap);
129 extern int err_rename(struct vop_rename_args *ap);
130
131 extern int nop_mkdir(struct vop_mkdir_args *ap);
132 extern int err_mkdir(struct vop_mkdir_args *ap);
133
134 extern int nop_rmdir(struct vop_rmdir_args *ap);
135 extern int err_rmdir(struct vop_rmdir_args *ap);
136
137 extern int nop_symlink(struct vop_symlink_args *ap);
138 extern int err_symlink(struct vop_symlink_args *ap);
139
140 extern int nop_readdir(struct vop_readdir_args *ap);
141 extern int err_readdir(struct vop_readdir_args *ap);
142
143 extern int nop_readdirattr(struct vop_readdirattr_args *ap);
144 extern int err_readdirattr(struct vop_readdirattr_args *ap);
145
146 extern int nop_readlink(struct vop_readlink_args *ap);
147 extern int err_readlink(struct vop_readlink_args *ap);
148
149 extern int nop_abortop(struct vop_abortop_args *ap);
150 extern int err_abortop(struct vop_abortop_args *ap);
151
152 extern int nop_inactive(struct vop_inactive_args *ap);
153 extern int err_inactive(struct vop_inactive_args *ap);
154
155 extern int nop_reclaim(struct vop_reclaim_args *ap);
156 extern int err_reclaim(struct vop_reclaim_args *ap);
157
158 extern int nop_lock(struct vop_lock_args *ap);
159 extern int err_lock(struct vop_lock_args *ap);
160
161 extern int nop_unlock(struct vop_unlock_args *ap);
162 extern int err_unlock(struct vop_unlock_args *ap);
163
164 extern int nop_bmap(struct vop_bmap_args *ap);
165 extern int err_bmap(struct vop_bmap_args *ap);
166
167 extern int nop_strategy(struct vop_strategy_args *ap);
168 extern int err_strategy(struct vop_strategy_args *ap);
169
170 extern int nop_print(struct vop_print_args *ap);
171 extern int err_print(struct vop_print_args *ap);
172
173 extern int nop_islocked(struct vop_islocked_args *ap);
174 extern int err_islocked(struct vop_islocked_args *ap);
175
176 extern int nop_pathconf(struct vop_pathconf_args *ap);
177 extern int err_pathconf(struct vop_pathconf_args *ap);
178
179 extern int nop_advlock(struct vop_advlock_args *ap);
180 extern int err_advlock(struct vop_advlock_args *ap);
181
182 extern int nop_blkatoff(struct vop_blkatoff_args *ap);
183 extern int err_blkatoff(struct vop_blkatoff_args *ap);
184
185 extern int nop_valloc(struct vop_valloc_args *ap);
186 extern int err_valloc(struct vop_valloc_args *ap);
187
188 extern int nop_reallocblks(struct vop_reallocblks_args *ap);
189 extern int err_reallocblks(struct vop_reallocblks_args *ap);
190
191 extern int nop_vfree(struct vop_vfree_args *ap);
192 extern int err_vfree(struct vop_vfree_args *ap);
193
194 extern int nop_truncate(struct vop_truncate_args *ap);
195 extern int err_truncate(struct vop_truncate_args *ap);
196
197 extern int nop_allocate(struct vop_allocate_args *ap);
198 extern int err_allocate(struct vop_allocate_args *ap);
199
200 extern int nop_update(struct vop_update_args *ap);
201 extern int err_update(struct vop_update_args *ap);
202
203 extern int nop_pgrd(struct vop_pgrd_args *ap);
204 extern int err_pgrd(struct vop_pgrd_args *ap);
205
206 extern int nop_pgwr(struct vop_pgwr_args *ap);
207 extern int err_pgwr(struct vop_pgwr_args *ap);
208
209 extern int nop_bwrite(struct vop_bwrite_args *ap);
210 extern int err_bwrite(struct vop_bwrite_args *ap);
211
212 extern int nop_pagein(struct vop_pagein_args *ap);
213 extern int err_pagein(struct vop_pagein_args *ap);
214
215 extern int nop_pageout(struct vop_pageout_args *ap);
216 extern int err_pageout(struct vop_pageout_args *ap);
217
218 extern int nop_devblocksize(struct vop_devblocksize_args *ap);
219 extern int err_devblocksize(struct vop_devblocksize_args *ap);
220
221 extern int nop_searchfs(struct vop_searchfs_args *ap);
222 extern int err_searchfs(struct vop_searchfs_args *ap);
223
224 extern int nop_copyfile(struct vop_copyfile_args *ap);
225 extern int err_copyfile(struct vop_copyfile_args *ap);
226
227 extern int nop_blktooff(struct vop_blktooff_args *ap);
228 extern int err_blktooff(struct vop_blktooff_args *ap);
229
230 extern int nop_offtoblk(struct vop_offtoblk_args *ap);
231 extern int err_offtoblk(struct vop_offtoblk_args *ap);
232
233 extern int nop_cmap(struct vop_cmap_args *ap);
234 extern int err_cmap(struct vop_cmap_args *ap);
235 #endif /* _VFS_VFS_SUPPORT_H_ */