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