]> git.saurik.com Git - apple/xnu.git/blame - bsd/vfs/vfs_support.h
xnu-792.25.20.tar.gz
[apple/xnu.git] / bsd / vfs / vfs_support.h
CommitLineData
1c79356b 1/*
5d5c5d0d
A
2 * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
3 *
6601e61a 4 * @APPLE_LICENSE_HEADER_START@
1c79356b 5 *
6601e61a
A
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.
8f6c56a5 11 *
6601e61a
A
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
8f6c56a5
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
6601e61a
A
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
8f6c56a5 19 *
6601e61a 20 * @APPLE_LICENSE_HEADER_END@
1c79356b
A
21 */
22/*
23 * Copyright (c) 1998 Apple Computer, Inc. All rights reserved.
24 *
25 * File: vfs/vfs_support.h
26 *
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
30 * supposed to.
31 *
32 * HISTORY
33 * 18-Aug-1998 Umesh Vaishampayan (umeshv@apple.com)
34 * Created.
35 */
36
37#ifndef _VFS_VFS_SUPPORT_H_
38#define _VFS_VFS_SUPPORT_H_
39
91447636 40#include <sys/cdefs.h>
1c79356b
A
41#include <sys/param.h>
42#include <sys/systm.h>
1c79356b
A
43#include <sys/kernel.h>
44#include <sys/file.h>
45#include <sys/stat.h>
1c79356b
A
46#include <sys/proc.h>
47#include <sys/conf.h>
48#include <sys/mount.h>
49#include <sys/vnode.h>
91447636 50#include <sys/vnode_if.h>
1c79356b
A
51#include <sys/malloc.h>
52#include <sys/dirent.h>
1c79356b 53
91447636
A
54__BEGIN_DECLS
55extern int nop_create(struct vnop_create_args *ap);
56extern int err_create(struct vnop_create_args *ap);
1c79356b 57
91447636
A
58extern int nop_whiteout(struct vnop_whiteout_args *ap);
59extern int err_whiteout(struct vnop_whiteout_args *ap);
1c79356b 60
91447636
A
61extern int nop_mknod(struct vnop_mknod_args *ap);
62extern int err_mknod(struct vnop_mknod_args *ap);
1c79356b 63
91447636
A
64extern int nop_open(struct vnop_open_args *ap);
65extern int err_open(struct vnop_open_args *ap);
1c79356b 66
91447636
A
67extern int nop_close(struct vnop_close_args *ap);
68extern int err_close(struct vnop_close_args *ap);
1c79356b 69
91447636
A
70extern int nop_access(struct vnop_access_args *ap);
71extern int err_access(struct vnop_access_args *ap);
1c79356b 72
91447636
A
73extern int nop_getattr(struct vnop_getattr_args *ap);
74extern int err_getattr(struct vnop_getattr_args *ap);
1c79356b 75
91447636
A
76extern int nop_setattr(struct vnop_setattr_args *ap);
77extern int err_setattr(struct vnop_setattr_args *ap);
1c79356b 78
91447636
A
79extern int nop_getattrlist(struct vnop_getattrlist_args *ap);
80extern int err_getattrlist(struct vnop_getattrlist_args *ap);
1c79356b 81
91447636
A
82extern int nop_setattrlist(struct vnop_setattrlist_args *ap);
83extern int err_setattrlist(struct vnop_setattrlist_args *ap);
1c79356b 84
91447636
A
85extern int nop_read(struct vnop_read_args *ap);
86extern int err_read(struct vnop_read_args *ap);
1c79356b 87
91447636
A
88extern int nop_write(struct vnop_write_args *ap);
89extern int err_write(struct vnop_write_args *ap);
1c79356b 90
91447636
A
91extern int nop_ioctl(struct vnop_ioctl_args *ap);
92extern int err_ioctl(struct vnop_ioctl_args *ap);
1c79356b 93
91447636
A
94extern int nop_select(struct vnop_select_args *ap);
95extern int err_select(struct vnop_select_args *ap);
1c79356b 96
91447636
A
97extern int nop_exchange(struct vnop_exchange_args *ap);
98extern int err_exchange(struct vnop_exchange_args *ap);
1c79356b 99
91447636
A
100extern int nop_revoke(struct vnop_revoke_args *ap);
101extern int err_revoke(struct vnop_revoke_args *ap);
1c79356b 102
91447636
A
103extern int nop_mmap(struct vnop_mmap_args *ap);
104extern int err_mmap(struct vnop_mmap_args *ap);
1c79356b 105
91447636
A
106extern int nop_fsync(struct vnop_fsync_args *ap);
107extern int err_fsync(struct vnop_fsync_args *ap);
1c79356b 108
91447636
A
109extern int nop_remove(struct vnop_remove_args *ap);
110extern int err_remove(struct vnop_remove_args *ap);
1c79356b 111
91447636
A
112extern int nop_link(struct vnop_link_args *ap);
113extern int err_link(struct vnop_link_args *ap);
1c79356b 114
91447636
A
115extern int nop_rename(struct vnop_rename_args *ap);
116extern int err_rename(struct vnop_rename_args *ap);
1c79356b 117
91447636
A
118extern int nop_mkdir(struct vnop_mkdir_args *ap);
119extern int err_mkdir(struct vnop_mkdir_args *ap);
1c79356b 120
91447636
A
121extern int nop_rmdir(struct vnop_rmdir_args *ap);
122extern int err_rmdir(struct vnop_rmdir_args *ap);
1c79356b 123
91447636
A
124extern int nop_symlink(struct vnop_symlink_args *ap);
125extern int err_symlink(struct vnop_symlink_args *ap);
1c79356b 126
91447636
A
127extern int nop_readdir(struct vnop_readdir_args *ap);
128extern int err_readdir(struct vnop_readdir_args *ap);
1c79356b 129
91447636
A
130extern int nop_readdirattr(struct vnop_readdirattr_args *ap);
131extern int err_readdirattr(struct vnop_readdirattr_args *ap);
1c79356b 132
91447636
A
133extern int nop_readlink(struct vnop_readlink_args *ap);
134extern int err_readlink(struct vnop_readlink_args *ap);
1c79356b 135
91447636
A
136extern int nop_inactive(struct vnop_inactive_args *ap);
137extern int err_inactive(struct vnop_inactive_args *ap);
1c79356b 138
91447636
A
139extern int nop_reclaim(struct vnop_reclaim_args *ap);
140extern int err_reclaim(struct vnop_reclaim_args *ap);
1c79356b 141
1c79356b 142
91447636
A
143extern int nop_strategy(struct vnop_strategy_args *ap);
144extern int err_strategy(struct vnop_strategy_args *ap);
1c79356b 145
91447636
A
146extern int nop_pathconf(struct vnop_pathconf_args *ap);
147extern int err_pathconf(struct vnop_pathconf_args *ap);
1c79356b 148
91447636
A
149extern int nop_advlock(struct vnop_advlock_args *ap);
150extern int err_advlock(struct vnop_advlock_args *ap);
1c79356b 151
1c79356b 152
91447636
A
153extern int nop_allocate(struct vnop_allocate_args *ap);
154extern int err_allocate(struct vnop_allocate_args *ap);
1c79356b 155
91447636
A
156extern int nop_bwrite(struct vnop_bwrite_args *ap);
157extern int err_bwrite(struct vnop_bwrite_args *ap);
1c79356b 158
91447636
A
159extern int nop_pagein(struct vnop_pagein_args *ap);
160extern int err_pagein(struct vnop_pagein_args *ap);
1c79356b 161
91447636
A
162extern int nop_pageout(struct vnop_pageout_args *ap);
163extern int err_pageout(struct vnop_pageout_args *ap);
1c79356b 164
91447636
A
165extern int nop_searchfs(struct vnop_searchfs_args *ap);
166extern int err_searchfs(struct vnop_searchfs_args *ap);
1c79356b 167
91447636
A
168extern int nop_copyfile(struct vnop_copyfile_args *ap);
169extern int err_copyfile(struct vnop_copyfile_args *ap);
1c79356b 170
91447636
A
171extern int nop_blktooff(struct vnop_blktooff_args *ap);
172extern int err_blktooff(struct vnop_blktooff_args *ap);
1c79356b 173
91447636
A
174extern int nop_offtoblk(struct vnop_offtoblk_args *ap);
175extern int err_offtoblk(struct vnop_offtoblk_args *ap);
1c79356b 176
91447636
A
177extern int nop_blockmap(struct vnop_blockmap_args *ap);
178extern int err_blockmap(struct vnop_blockmap_args *ap);
179__END_DECLS
1c79356b 180
1c79356b 181#endif /* _VFS_VFS_SUPPORT_H_ */