]>
git.saurik.com Git - apple/xnu.git/blob - bsd/vfs/vfs_support.h
2 * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
25 * File: vfs/vfs_support.h
27 * Prototypes for the default vfs routines. A VFS plugin can use these
28 * functions in case it does not want to implement all. These functions
29 * take care of releasing locks and free up memory that they are
33 * 18-Aug-1998 Umesh Vaishampayan (umeshv@apple.com)
37 #ifndef _VFS_VFS_SUPPORT_H_
38 #define _VFS_VFS_SUPPORT_H_
40 #include <sys/cdefs.h>
41 #include <sys/param.h>
42 #include <sys/systm.h>
43 #include <sys/resourcevar.h>
44 #include <sys/kernel.h>
49 #include <sys/mount.h>
50 #include <sys/vnode.h>
51 #include <sys/vnode_if.h>
52 #include <sys/malloc.h>
53 #include <sys/dirent.h>
54 #include <vm/vm_pageout.h>
57 extern int nop_create(struct vnop_create_args
*ap
);
58 extern int err_create(struct vnop_create_args
*ap
);
60 extern int nop_whiteout(struct vnop_whiteout_args
*ap
);
61 extern int err_whiteout(struct vnop_whiteout_args
*ap
);
63 extern int nop_mknod(struct vnop_mknod_args
*ap
);
64 extern int err_mknod(struct vnop_mknod_args
*ap
);
66 extern int nop_open(struct vnop_open_args
*ap
);
67 extern int err_open(struct vnop_open_args
*ap
);
69 extern int nop_close(struct vnop_close_args
*ap
);
70 extern int err_close(struct vnop_close_args
*ap
);
72 extern int nop_access(struct vnop_access_args
*ap
);
73 extern int err_access(struct vnop_access_args
*ap
);
75 extern int nop_getattr(struct vnop_getattr_args
*ap
);
76 extern int err_getattr(struct vnop_getattr_args
*ap
);
78 extern int nop_setattr(struct vnop_setattr_args
*ap
);
79 extern int err_setattr(struct vnop_setattr_args
*ap
);
81 extern int nop_getattrlist(struct vnop_getattrlist_args
*ap
);
82 extern int err_getattrlist(struct vnop_getattrlist_args
*ap
);
84 extern int nop_setattrlist(struct vnop_setattrlist_args
*ap
);
85 extern int err_setattrlist(struct vnop_setattrlist_args
*ap
);
87 extern int nop_read(struct vnop_read_args
*ap
);
88 extern int err_read(struct vnop_read_args
*ap
);
90 extern int nop_write(struct vnop_write_args
*ap
);
91 extern int err_write(struct vnop_write_args
*ap
);
93 extern int nop_ioctl(struct vnop_ioctl_args
*ap
);
94 extern int err_ioctl(struct vnop_ioctl_args
*ap
);
96 extern int nop_select(struct vnop_select_args
*ap
);
97 extern int err_select(struct vnop_select_args
*ap
);
99 extern int nop_exchange(struct vnop_exchange_args
*ap
);
100 extern int err_exchange(struct vnop_exchange_args
*ap
);
102 extern int nop_revoke(struct vnop_revoke_args
*ap
);
103 extern int err_revoke(struct vnop_revoke_args
*ap
);
105 extern int nop_mmap(struct vnop_mmap_args
*ap
);
106 extern int err_mmap(struct vnop_mmap_args
*ap
);
108 extern int nop_fsync(struct vnop_fsync_args
*ap
);
109 extern int err_fsync(struct vnop_fsync_args
*ap
);
111 extern int nop_remove(struct vnop_remove_args
*ap
);
112 extern int err_remove(struct vnop_remove_args
*ap
);
114 extern int nop_link(struct vnop_link_args
*ap
);
115 extern int err_link(struct vnop_link_args
*ap
);
117 extern int nop_rename(struct vnop_rename_args
*ap
);
118 extern int err_rename(struct vnop_rename_args
*ap
);
120 extern int nop_mkdir(struct vnop_mkdir_args
*ap
);
121 extern int err_mkdir(struct vnop_mkdir_args
*ap
);
123 extern int nop_rmdir(struct vnop_rmdir_args
*ap
);
124 extern int err_rmdir(struct vnop_rmdir_args
*ap
);
126 extern int nop_symlink(struct vnop_symlink_args
*ap
);
127 extern int err_symlink(struct vnop_symlink_args
*ap
);
129 extern int nop_readdir(struct vnop_readdir_args
*ap
);
130 extern int err_readdir(struct vnop_readdir_args
*ap
);
132 extern int nop_readdirattr(struct vnop_readdirattr_args
*ap
);
133 extern int err_readdirattr(struct vnop_readdirattr_args
*ap
);
135 extern int nop_readlink(struct vnop_readlink_args
*ap
);
136 extern int err_readlink(struct vnop_readlink_args
*ap
);
138 extern int nop_inactive(struct vnop_inactive_args
*ap
);
139 extern int err_inactive(struct vnop_inactive_args
*ap
);
141 extern int nop_reclaim(struct vnop_reclaim_args
*ap
);
142 extern int err_reclaim(struct vnop_reclaim_args
*ap
);
145 extern int nop_strategy(struct vnop_strategy_args
*ap
);
146 extern int err_strategy(struct vnop_strategy_args
*ap
);
148 extern int nop_pathconf(struct vnop_pathconf_args
*ap
);
149 extern int err_pathconf(struct vnop_pathconf_args
*ap
);
151 extern int nop_advlock(struct vnop_advlock_args
*ap
);
152 extern int err_advlock(struct vnop_advlock_args
*ap
);
155 extern int nop_allocate(struct vnop_allocate_args
*ap
);
156 extern int err_allocate(struct vnop_allocate_args
*ap
);
158 extern int nop_bwrite(struct vnop_bwrite_args
*ap
);
159 extern int err_bwrite(struct vnop_bwrite_args
*ap
);
161 extern int nop_pagein(struct vnop_pagein_args
*ap
);
162 extern int err_pagein(struct vnop_pagein_args
*ap
);
164 extern int nop_pageout(struct vnop_pageout_args
*ap
);
165 extern int err_pageout(struct vnop_pageout_args
*ap
);
167 extern int nop_devblocksize(struct vnop_devblocksize_args
*ap
);
168 extern int err_devblocksize(struct vnop_devblocksize_args
*ap
);
170 extern int nop_searchfs(struct vnop_searchfs_args
*ap
);
171 extern int err_searchfs(struct vnop_searchfs_args
*ap
);
173 extern int nop_copyfile(struct vnop_copyfile_args
*ap
);
174 extern int err_copyfile(struct vnop_copyfile_args
*ap
);
176 extern int nop_blktooff(struct vnop_blktooff_args
*ap
);
177 extern int err_blktooff(struct vnop_blktooff_args
*ap
);
179 extern int nop_offtoblk(struct vnop_offtoblk_args
*ap
);
180 extern int err_offtoblk(struct vnop_offtoblk_args
*ap
);
182 extern int nop_blockmap(struct vnop_blockmap_args
*ap
);
183 extern int err_blockmap(struct vnop_blockmap_args
*ap
);
186 #endif /* _VFS_VFS_SUPPORT_H_ */