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 $
35 # $DragonFly: src/sys/kern/Attic/vnode_if.src,v 1.3 2003/06/25 03:55:57 dillon Exp $
39 # Above each of the vop descriptors is a specification of the locking
40 # protocol used by each vop call. The first column is the name of
41 # the variable, the remaining three columns are in, out and error
42 # respectively. The "in" column defines the lock state on input,
43 # the "out" column defines the state on succesful return, and the
44 # "error" column defines the locking state on error exit.
46 # The locking value can take the following values:
47 # L: locked; not converted to type of lock.
49 # S: locked with shared lock.
50 # E: locked with exclusive lock for this process.
51 # O: locked with exclusive lock for other process.
53 # -: not applicable. vnode does not yet (or no longer) exists.
54 # =: the same on input and output, may be either L or U.
55 # X: locked if not nil.
70 # XXX - the lookup locking protocol defies simple description and depends
71 # on the flags and operation fields in the (cnp) structure. Note
72 # especially that *vpp may equal dvp and both may be locked.
76 INOUT struct vnode **vpp;
77 IN struct componentname *cnp;
81 #% cachedlookup dvp L ? ?
82 #% cachedlookup vpp - L -
84 # This must be an exact copy of lookup. See kern/vfs_cache.c for details.
88 INOUT struct vnode **vpp;
89 IN struct componentname *cnp;
98 OUT struct vnode **vpp;
99 IN struct componentname *cnp;
100 IN struct vattr *vap;
104 #% whiteout dvp L L L
107 IN struct vnode *dvp;
108 IN struct componentname *cnp;
117 IN struct vnode *dvp;
118 OUT struct vnode **vpp;
119 IN struct componentname *cnp;
120 IN struct vattr *vap;
129 IN struct ucred *cred;
130 IN struct thread *td;
139 IN struct ucred *cred;
140 IN struct thread *td;
149 IN struct ucred *cred;
150 IN struct thread *td;
158 OUT struct vattr *vap;
159 IN struct ucred *cred;
160 IN struct thread *td;
168 IN struct vattr *vap;
169 IN struct ucred *cred;
170 IN struct thread *td;
178 INOUT struct uio *uio;
180 IN struct ucred *cred;
188 INOUT struct uio *uio;
190 IN struct ucred *cred;
198 IN struct thread *td;
199 IN struct ucred *cred;
211 IN struct ucred *cred;
212 IN struct thread *td;
221 IN struct ucred *cred;
222 IN struct thread *td;
247 IN struct ucred *cred;
248 IN struct thread *td;
256 IN struct ucred *cred;
258 IN struct thread *td;
266 IN struct vnode *dvp;
268 IN struct componentname *cnp;
276 IN struct vnode *tdvp;
278 IN struct componentname *cnp;
288 IN WILLRELE struct vnode *fdvp;
289 IN WILLRELE struct vnode *fvp;
290 IN struct componentname *fcnp;
291 IN WILLRELE struct vnode *tdvp;
292 IN WILLRELE struct vnode *tvp;
293 IN struct componentname *tcnp;
301 IN struct vnode *dvp;
302 OUT struct vnode **vpp;
303 IN struct componentname *cnp;
304 IN struct vattr *vap;
312 IN struct vnode *dvp;
314 IN struct componentname *cnp;
322 IN struct vnode *dvp;
323 OUT struct vnode **vpp;
324 IN struct componentname *cnp;
325 IN struct vattr *vap;
334 INOUT struct uio *uio;
335 IN struct ucred *cred;
338 INOUT u_long **cookies;
346 INOUT struct uio *uio;
347 IN struct ucred *cred;
355 IN struct thread *td;
363 IN struct thread *td;
372 IN struct thread *td;
381 IN struct thread *td;
391 OUT struct vnode **vpp;
418 OUT register_t *retval;
437 IN off_t startoffset;
439 IN struct ucred *cred;
441 OUT struct buf **bpp;
445 #% reallocblks vp L L L
449 IN struct cluster_save *buflist;
460 IN vm_ooffset_t offset;
472 IN vm_ooffset_t offset;
478 # This call is used by the filesystem to release blocks back to
479 # device-driver. This is useful if the driver has a lengthy
480 # erase handling or similar.
503 OUT struct acl *aclp;
504 IN struct ucred *cred;
505 IN struct thread *td;
515 IN struct ucred *cred;
516 IN struct thread *td;
526 IN struct ucred *cred;
527 IN struct thread *td;
531 #% getextattr vp L L L
536 INOUT struct uio *uio;
537 IN struct ucred *cred;
538 IN struct thread *td;
542 #% setextattr vp L L L
547 INOUT struct uio *uio;
548 IN struct ucred *cred;
549 IN struct thread *td;
553 #% createvobject vp L L L
557 IN struct ucred *cred;
558 IN struct thread *td;
562 #% destroyvobject vp L L L
569 #% getvobject vp L L L
573 OUT struct vm_object **objpp;