vnode.h (30739) | vnode.h (30743) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)vnode.h 8.7 (Berkeley) 2/4/94 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)vnode.h 8.7 (Berkeley) 2/4/94 |
34 * $Id: vnode.h,v 1.53 1997/10/17 12:36:18 phk Exp $ | 34 * $Id: vnode.h,v 1.54 1997/10/26 20:26:14 phk Exp $ |
35 */ 36 37#ifndef _SYS_VNODE_H_ 38#define _SYS_VNODE_H_ 39 40#include <sys/lock.h> 41#include <sys/queue.h> 42 --- 430 unchanged lines hidden (view full) --- 473int vget __P((struct vnode *vp, int lockflag, struct proc *p)); 474void vgone __P((struct vnode *vp)); 475void vhold __P((struct vnode *)); 476int vinvalbuf __P((struct vnode *vp, int save, struct ucred *cred, 477 struct proc *p, int slpflag, int slptimeo)); 478void vprint __P((char *label, struct vnode *vp)); 479int vrecycle __P((struct vnode *vp, struct simplelock *inter_lkp, 480 struct proc *p)); | 35 */ 36 37#ifndef _SYS_VNODE_H_ 38#define _SYS_VNODE_H_ 39 40#include <sys/lock.h> 41#include <sys/queue.h> 42 --- 430 unchanged lines hidden (view full) --- 473int vget __P((struct vnode *vp, int lockflag, struct proc *p)); 474void vgone __P((struct vnode *vp)); 475void vhold __P((struct vnode *)); 476int vinvalbuf __P((struct vnode *vp, int save, struct ucred *cred, 477 struct proc *p, int slpflag, int slptimeo)); 478void vprint __P((char *label, struct vnode *vp)); 479int vrecycle __P((struct vnode *vp, struct simplelock *inter_lkp, 480 struct proc *p)); |
481int vn_bwrite __P((struct vop_bwrite_args *ap)); | |
482int vn_close __P((struct vnode *vp, 483 int flags, struct ucred *cred, struct proc *p)); 484int vn_lock __P((struct vnode *vp, int flags, struct proc *p)); 485int vn_open __P((struct nameidata *ndp, int fmode, int cmode)); 486int vn_rdwr __P((enum uio_rw rw, struct vnode *vp, caddr_t base, 487 int len, off_t offset, enum uio_seg segflg, int ioflg, 488 struct ucred *cred, int *aresid, struct proc *p)); 489int vn_stat __P((struct vnode *vp, struct stat *sb, struct proc *p)); 490int vfs_cache_lookup __P((struct vop_lookup_args *ap)); 491int vfs_object_create __P((struct vnode *vp, struct proc *p, 492 struct ucred *cred, int waslocked)); 493int vn_writechk __P((struct vnode *vp)); | 481int vn_close __P((struct vnode *vp, 482 int flags, struct ucred *cred, struct proc *p)); 483int vn_lock __P((struct vnode *vp, int flags, struct proc *p)); 484int vn_open __P((struct nameidata *ndp, int fmode, int cmode)); 485int vn_rdwr __P((enum uio_rw rw, struct vnode *vp, caddr_t base, 486 int len, off_t offset, enum uio_seg segflg, int ioflg, 487 struct ucred *cred, int *aresid, struct proc *p)); 488int vn_stat __P((struct vnode *vp, struct stat *sb, struct proc *p)); 489int vfs_cache_lookup __P((struct vop_lookup_args *ap)); 490int vfs_object_create __P((struct vnode *vp, struct proc *p, 491 struct ucred *cred, int waslocked)); 492int vn_writechk __P((struct vnode *vp)); |
493int vop_stdbwrite __P((struct vop_bwrite_args *ap)); |
|
494int vop_stdislocked __P((struct vop_islocked_args *)); 495int vop_stdlock __P((struct vop_lock_args *)); 496int vop_stdunlock __P((struct vop_unlock_args *)); 497int vop_noislocked __P((struct vop_islocked_args *)); 498int vop_nolock __P((struct vop_lock_args *)); 499int vop_nopoll __P((struct vop_poll_args *)); 500int vop_nounlock __P((struct vop_unlock_args *)); 501int vop_stdpathconf __P((struct vop_pathconf_args *)); 502int vop_revoke __P((struct vop_revoke_args *)); 503int vop_sharedlock __P((struct vop_lock_args *)); 504int vop_eopnotsupp __P((struct vop_generic_args *ap)); 505int vop_ebadf __P((struct vop_generic_args *ap)); 506int vop_einval __P((struct vop_generic_args *ap)); 507int vop_enotty __P((struct vop_generic_args *ap)); 508int vop_defaultop __P((struct vop_generic_args *ap)); 509int vop_null __P((struct vop_generic_args *ap)); 510 | 494int vop_stdislocked __P((struct vop_islocked_args *)); 495int vop_stdlock __P((struct vop_lock_args *)); 496int vop_stdunlock __P((struct vop_unlock_args *)); 497int vop_noislocked __P((struct vop_islocked_args *)); 498int vop_nolock __P((struct vop_lock_args *)); 499int vop_nopoll __P((struct vop_poll_args *)); 500int vop_nounlock __P((struct vop_unlock_args *)); 501int vop_stdpathconf __P((struct vop_pathconf_args *)); 502int vop_revoke __P((struct vop_revoke_args *)); 503int vop_sharedlock __P((struct vop_lock_args *)); 504int vop_eopnotsupp __P((struct vop_generic_args *ap)); 505int vop_ebadf __P((struct vop_generic_args *ap)); 506int vop_einval __P((struct vop_generic_args *ap)); 507int vop_enotty __P((struct vop_generic_args *ap)); 508int vop_defaultop __P((struct vop_generic_args *ap)); 509int vop_null __P((struct vop_generic_args *ap)); 510 |
511/* XXX: compat until fixed all places*/ 512#define vn_default_error vop_defaultop 513 | |
514struct vnode * 515 checkalias __P((struct vnode *vp, dev_t nvp_rdev, struct mount *mp)); 516void vput __P((struct vnode *vp)); 517void vref __P((struct vnode *vp)); 518void vrele __P((struct vnode *vp)); | 511struct vnode * 512 checkalias __P((struct vnode *vp, dev_t nvp_rdev, struct mount *mp)); 513void vput __P((struct vnode *vp)); 514void vref __P((struct vnode *vp)); 515void vrele __P((struct vnode *vp)); |
516 517extern vop_t **default_vnodeop_p; |
|
519#endif /* KERNEL */ 520 521#endif /* !_SYS_VNODE_H_ */ | 518#endif /* KERNEL */ 519 520#endif /* !_SYS_VNODE_H_ */ |