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