2 # Copyright (c) 1992, 1993
3 # The Regents of the University of California. All rights reserved.
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
13 # 3. All advertising materials mentioning features or use of this software
14 # must display the following acknowledgement:
15 # This product includes software developed by the University of
16 # California, Berkeley and its contributors.
17 # 4. Neither the name of the University nor the names of its contributors
18 # may be used to endorse or promote products derived from this software
19 # without specific prior written permission.
21 # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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
33 # @(#)vnode_if.src 8.12 (Berkeley) 5/14/95
34 # $FreeBSD: src/sys/kern/vnode_if.src,v 1.29.2.3 2001/05/18 09:58:45 bp Exp $
38 # Above each of the vop descriptors is a specification of the locking
39 # protocol used by each vop call. The first column is the name of
40 # the variable, the remaining three columns are in, out and error
41 # respectively. The "in" column defines the lock state on input,
42 # the "out" column defines the state on succesful return, and the
43 # "error" column defines the locking state on error exit.
45 # The locking value can take the following values:
46 # L: locked; not converted to type of lock.
48 # S: locked with shared lock.
49 # E: locked with exclusive lock for this process.
50 # O: locked with exclusive lock for other process.
52 # -: not applicable. vnode does not yet (or no longer) exists.
53 # =: the same on input and output, may be either L or U.
54 # X: locked if not nil.
69 # XXX - the lookup locking protocol defies simple description and depends
70 # on the flags and operation fields in the (cnp) structure. Note
71 # especially that *vpp may equal dvp and both may be locked.
75 INOUT struct vnode **vpp;
76 IN struct componentname *cnp;
80 #% cachedlookup dvp L ? ?
81 #% cachedlookup vpp - L -
83 # This must be an exact copy of lookup. See kern/vfs_cache.c for details.
87 INOUT struct vnode **vpp;
88 IN struct componentname *cnp;
97 OUT struct vnode **vpp;
98 IN struct componentname *cnp;
103 #% whiteout dvp L L L
106 IN struct vnode *dvp;
107 IN struct componentname *cnp;
116 IN struct vnode *dvp;
117 OUT struct vnode **vpp;
118 IN struct componentname *cnp;
119 IN struct vattr *vap;
128 IN struct ucred *cred;
138 IN struct ucred *cred;
148 IN struct ucred *cred;
157 OUT struct vattr *vap;
158 IN struct ucred *cred;
167 IN struct vattr *vap;
168 IN struct ucred *cred;
177 INOUT struct uio *uio;
179 IN struct ucred *cred;
187 INOUT struct uio *uio;
189 IN struct ucred *cred;
198 IN struct ucred *cred;
210 IN struct ucred *cred;
220 IN struct ucred *cred;
246 IN struct ucred *cred;
255 IN struct ucred *cred;
265 IN struct vnode *dvp;
267 IN struct componentname *cnp;
275 IN struct vnode *tdvp;
277 IN struct componentname *cnp;
287 IN WILLRELE struct vnode *fdvp;
288 IN WILLRELE struct vnode *fvp;
289 IN struct componentname *fcnp;
290 IN WILLRELE struct vnode *tdvp;
291 IN WILLRELE struct vnode *tvp;
292 IN struct componentname *tcnp;
300 IN struct vnode *dvp;
301 OUT struct vnode **vpp;
302 IN struct componentname *cnp;
303 IN struct vattr *vap;
311 IN struct vnode *dvp;
313 IN struct componentname *cnp;
321 IN struct vnode *dvp;
322 OUT struct vnode **vpp;
323 IN struct componentname *cnp;
324 IN struct vattr *vap;
333 INOUT struct uio *uio;
334 IN struct ucred *cred;
337 INOUT u_long **cookies;
345 INOUT struct uio *uio;
346 IN struct ucred *cred;
390 OUT struct vnode **vpp;
417 OUT register_t *retval;
436 IN off_t startoffset;
438 IN struct ucred *cred;
440 OUT struct buf **bpp;
444 #% reallocblks vp L L L
448 IN struct cluster_save *buflist;
459 IN vm_ooffset_t offset;
471 IN vm_ooffset_t offset;
477 # This call is used by the filesystem to release blocks back to
478 # device-driver. This is useful if the driver has a lengthy
479 # erase handling or similar.
502 OUT struct acl *aclp;
503 IN struct ucred *cred;
514 IN struct ucred *cred;
525 IN struct ucred *cred;
530 #% getextattr vp L L L
535 INOUT struct uio *uio;
536 IN struct ucred *cred;
541 #% setextattr vp L L L
546 INOUT struct uio *uio;
547 IN struct ucred *cred;
552 #% createvobject vp L L L
556 IN struct ucred *cred;
561 #% destroyvobject vp L L L
568 #% getvobject vp L L L
572 OUT struct vm_object **objpp;