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.4 2003/06/26 05:55:14 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 thread *td;
148 IN struct ucred *cred;
149 IN struct thread *td;
157 OUT struct vattr *vap;
158 IN struct thread *td;
166 IN struct vattr *vap;
167 IN struct ucred *cred;
168 IN struct thread *td;
176 INOUT struct uio *uio;
178 IN struct ucred *cred;
186 INOUT struct uio *uio;
188 IN struct ucred *cred;
196 IN struct thread *td;
197 IN struct ucred *cred;
209 IN struct ucred *cred;
210 IN struct thread *td;
219 IN struct ucred *cred;
220 IN struct thread *td;
245 IN struct ucred *cred;
246 IN struct thread *td;
255 IN struct thread *td;
263 IN struct vnode *dvp;
265 IN struct componentname *cnp;
273 IN struct vnode *tdvp;
275 IN struct componentname *cnp;
285 IN WILLRELE struct vnode *fdvp;
286 IN WILLRELE struct vnode *fvp;
287 IN struct componentname *fcnp;
288 IN WILLRELE struct vnode *tdvp;
289 IN WILLRELE struct vnode *tvp;
290 IN struct componentname *tcnp;
298 IN struct vnode *dvp;
299 OUT struct vnode **vpp;
300 IN struct componentname *cnp;
301 IN struct vattr *vap;
309 IN struct vnode *dvp;
311 IN struct componentname *cnp;
319 IN struct vnode *dvp;
320 OUT struct vnode **vpp;
321 IN struct componentname *cnp;
322 IN struct vattr *vap;
331 INOUT struct uio *uio;
332 IN struct ucred *cred;
335 INOUT u_long **cookies;
343 INOUT struct uio *uio;
344 IN struct ucred *cred;
352 IN struct thread *td;
360 IN struct thread *td;
369 IN struct thread *td;
378 IN struct thread *td;
388 OUT struct vnode **vpp;
415 OUT register_t *retval;
434 IN off_t startoffset;
436 IN struct ucred *cred;
438 OUT struct buf **bpp;
442 #% reallocblks vp L L L
446 IN struct cluster_save *buflist;
457 IN vm_ooffset_t offset;
469 IN vm_ooffset_t offset;
475 # This call is used by the filesystem to release blocks back to
476 # device-driver. This is useful if the driver has a lengthy
477 # erase handling or similar.
500 OUT struct acl *aclp;
501 IN struct ucred *cred;
502 IN struct thread *td;
512 IN struct ucred *cred;
513 IN struct thread *td;
523 IN struct ucred *cred;
524 IN struct thread *td;
528 #% getextattr vp L L L
533 INOUT struct uio *uio;
534 IN struct ucred *cred;
535 IN struct thread *td;
539 #% setextattr vp L L L
544 INOUT struct uio *uio;
545 IN struct ucred *cred;
546 IN struct thread *td;
550 #% createvobject vp L L L
554 IN struct thread *td;
558 #% destroyvobject vp L L L
565 #% getvobject vp L L L
569 OUT struct vm_object **objpp;