Home | History | Annotate | Line # | Download | only in kern
vnode_if.src revision 1.58.8.2
      1  1.58.8.2     rmind #	$NetBSD: vnode_if.src,v 1.58.8.2 2011/03/05 20:55:27 rmind Exp $
      2       1.1   mycroft #
      3       1.1   mycroft # Copyright (c) 1992, 1993
      4       1.1   mycroft #	The Regents of the University of California.  All rights reserved.
      5       1.1   mycroft #
      6       1.1   mycroft # Redistribution and use in source and binary forms, with or without
      7       1.1   mycroft # modification, are permitted provided that the following conditions
      8       1.1   mycroft # are met:
      9       1.1   mycroft # 1. Redistributions of source code must retain the above copyright
     10       1.1   mycroft #    notice, this list of conditions and the following disclaimer.
     11       1.1   mycroft # 2. Redistributions in binary form must reproduce the above copyright
     12       1.1   mycroft #    notice, this list of conditions and the following disclaimer in the
     13       1.1   mycroft #    documentation and/or other materials provided with the distribution.
     14       1.1   mycroft # 3. All advertising materials mentioning features or use of this software
     15       1.1   mycroft #    must display the following acknowledgement:
     16       1.1   mycroft #	This product includes software developed by the University of
     17       1.1   mycroft #	California, Berkeley and its contributors.
     18       1.1   mycroft # 4. Neither the name of the University nor the names of its contributors
     19       1.1   mycroft #    may be used to endorse or promote products derived from this software
     20       1.1   mycroft #    without specific prior written permission.
     21       1.1   mycroft #
     22       1.1   mycroft # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     23       1.1   mycroft # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     24       1.1   mycroft # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     25       1.1   mycroft # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     26       1.1   mycroft # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     27       1.1   mycroft # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     28       1.1   mycroft # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29       1.1   mycroft # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     30       1.1   mycroft # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     31       1.1   mycroft # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     32       1.1   mycroft # SUCH DAMAGE.
     33       1.1   mycroft #
     34      1.13      fvdl #	@(#)vnode_if.src	8.14 (Berkeley) 8/6/95
     35      1.13      fvdl #
     36      1.13      fvdl #
     37      1.13      fvdl 
     38      1.44     perry # 
     39      1.13      fvdl # Above each of the vop descriptors is a specification of the locking
     40      1.13      fvdl # protocol used by each vop call.  The first column is the name of
     41      1.13      fvdl # the variable, the remaining three columns are in, out and error
     42      1.13      fvdl # respectively.  The "in" column defines the lock state on input,
     43      1.36       wiz # the "out" column defines the state on successful return, and the
     44      1.13      fvdl # "error" column defines the locking state on error exit.
     45      1.44     perry #     
     46      1.13      fvdl # The locking value can take the following values:
     47      1.13      fvdl # L: locked.
     48      1.30       chs # U: unlocked.
     49      1.13      fvdl # -: not applicable.  vnode does not yet (or no longer) exists.
     50      1.13      fvdl # =: the same on input and output, may be either L or U.
     51      1.13      fvdl # X: locked if not nil.
     52      1.22  wrstuden #
     53      1.22  wrstuden # For operations other than VOP_LOOKUP which require a component name
     54      1.22  wrstuden # parameter, the flags required for the initial namei() call are listed.
     55      1.22  wrstuden # Additional flags may be added to the namei() call, but these are required.
     56      1.44     perry #     
     57      1.44     perry  
     58      1.13      fvdl #
     59      1.51     pooka #% lookup     dvp     L L L
     60      1.13      fvdl #% lookup     vpp     - L -
     61      1.13      fvdl #
     62      1.51     pooka # XXX - the lookup locking protocol defies simple description.
     63      1.51     pooka #    Note especially that *vpp may equal dvp.
     64      1.16  sommerfe #
     65      1.16  sommerfe #    More details:
     66      1.20  wrstuden #     There are three types of lookups: ".", ".." (ISDOTDOT), and other.
     67      1.20  wrstuden #     On successful lookup of ".", a reference is added to dvp, and it
     68      1.20  wrstuden #          is returned in *vpp.
     69      1.20  wrstuden #     To look up ISDOTDOT, dvp is unlocked, the ".." node is locked, and
     70      1.51     pooka #          then dvp is relocked.  This preserves the protocol of always
     71      1.51     pooka #          locking nodes from root ("/") downward and prevents deadlock.
     72      1.20  wrstuden #     Other lookups find the named node (creating the vnode if needed) and
     73      1.20  wrstuden #          return it, locked, in *vpp.
     74      1.51     pooka #     On failure, *vpp is NULL, and *dvp is left locked.
     75      1.44     perry #	
     76      1.16  sommerfe #     *vpp is always locked on return if the operation succeeds.
     77      1.51     pooka #          Typically, if *vpp == dvp, you need to release twice, but
     78      1.51     pooka #          unlock only once.
     79       1.1   mycroft #
     80       1.1   mycroft vop_lookup {
     81       1.1   mycroft 	IN struct vnode *dvp;
     82      1.58     pooka 	OUT WILLMAKE struct vnode **vpp;
     83       1.1   mycroft 	IN struct componentname *cnp;
     84       1.1   mycroft };
     85       1.1   mycroft 
     86      1.13      fvdl #
     87      1.13      fvdl #% create     dvp     L U U
     88      1.13      fvdl #% create     vpp     - L -
     89      1.13      fvdl #
     90      1.22  wrstuden #! create cnp	CREATE, LOCKPARENT
     91      1.22  wrstuden #
     92       1.1   mycroft vop_create {
     93      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
     94      1.53     pooka 	OUT WILLMAKE struct vnode **vpp;
     95       1.1   mycroft 	IN struct componentname *cnp;
     96       1.1   mycroft 	IN struct vattr *vap;
     97       1.1   mycroft };
     98       1.1   mycroft 
     99      1.13      fvdl #
    100      1.13      fvdl #% mknod      dvp     L U U
    101      1.29     assar #% mknod      vpp     - L -
    102      1.13      fvdl #
    103      1.22  wrstuden #! mknod cnp	CREATE, LOCKPARENT
    104      1.22  wrstuden #
    105       1.1   mycroft vop_mknod {
    106      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    107      1.53     pooka 	OUT WILLMAKE struct vnode **vpp;
    108       1.1   mycroft 	IN struct componentname *cnp;
    109       1.1   mycroft 	IN struct vattr *vap;
    110       1.1   mycroft };
    111       1.1   mycroft 
    112      1.13      fvdl #
    113      1.13      fvdl #% open               vp      L L L
    114      1.13      fvdl #
    115       1.1   mycroft vop_open {
    116      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    117       1.1   mycroft 	IN int mode;
    118      1.50      elad 	IN kauth_cred_t cred;
    119       1.1   mycroft };
    120       1.1   mycroft 
    121      1.13      fvdl #
    122      1.15  wrstuden #% close      vp      L L L
    123      1.13      fvdl #
    124       1.1   mycroft vop_close {
    125      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    126       1.1   mycroft 	IN int fflag;
    127      1.50      elad 	IN kauth_cred_t cred;
    128       1.1   mycroft };
    129       1.1   mycroft 
    130      1.13      fvdl #
    131      1.13      fvdl #% access     vp      L L L
    132      1.13      fvdl #
    133       1.1   mycroft vop_access {
    134      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    135       1.1   mycroft 	IN int mode;
    136      1.50      elad 	IN kauth_cred_t cred;
    137       1.1   mycroft };
    138       1.1   mycroft 
    139      1.13      fvdl #
    140      1.13      fvdl #% getattr    vp      = = =
    141      1.13      fvdl #
    142       1.1   mycroft vop_getattr {
    143       1.1   mycroft 	IN struct vnode *vp;
    144       1.1   mycroft 	IN struct vattr *vap;
    145      1.50      elad 	IN kauth_cred_t cred;
    146       1.1   mycroft };
    147       1.1   mycroft 
    148      1.13      fvdl #
    149      1.13      fvdl #% setattr    vp      L L L
    150      1.13      fvdl #
    151       1.1   mycroft vop_setattr {
    152      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    153       1.1   mycroft 	IN struct vattr *vap;
    154      1.50      elad 	IN kauth_cred_t cred;
    155       1.1   mycroft };
    156       1.1   mycroft 
    157      1.13      fvdl #
    158      1.13      fvdl #% read               vp      L L L
    159      1.13      fvdl #
    160       1.1   mycroft vop_read {
    161      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    162       1.1   mycroft 	INOUT struct uio *uio;
    163       1.1   mycroft 	IN int ioflag;
    164      1.50      elad 	IN kauth_cred_t cred;
    165       1.1   mycroft };
    166       1.1   mycroft 
    167      1.13      fvdl #
    168      1.13      fvdl #% write      vp      L L L
    169      1.13      fvdl #
    170       1.1   mycroft vop_write {
    171      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    172       1.1   mycroft 	INOUT struct uio *uio;
    173       1.1   mycroft 	IN int ioflag;
    174      1.50      elad 	IN kauth_cred_t cred;
    175       1.1   mycroft };
    176       1.1   mycroft 
    177      1.13      fvdl #
    178      1.13      fvdl #% ioctl      vp      U U U
    179      1.13      fvdl #
    180       1.1   mycroft vop_ioctl {
    181      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    182       1.4       cgd 	IN u_long command;
    183      1.32  jdolecek 	IN void *data;
    184      1.19  wrstuden 	IN int fflag;
    185      1.50      elad 	IN kauth_cred_t cred;
    186      1.19  wrstuden };
    187      1.19  wrstuden 
    188      1.19  wrstuden #
    189      1.49  perseant #% fcntl      vp      U U U
    190      1.19  wrstuden #
    191      1.19  wrstuden vop_fcntl {
    192      1.49  perseant 	IN LOCKED=NO struct vnode *vp;
    193      1.19  wrstuden 	IN u_int command;
    194      1.32  jdolecek 	IN void *data;
    195       1.1   mycroft 	IN int fflag;
    196      1.50      elad 	IN kauth_cred_t cred;
    197       1.1   mycroft };
    198       1.1   mycroft 
    199      1.13      fvdl #
    200      1.13      fvdl #% poll     vp      U U U
    201      1.13      fvdl #
    202      1.11   mycroft vop_poll {
    203      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    204      1.11   mycroft 	IN int events;
    205      1.31  jdolecek };
    206      1.31  jdolecek 
    207      1.31  jdolecek #
    208      1.31  jdolecek #% kqfilter     vp      U U U
    209      1.31  jdolecek #
    210      1.31  jdolecek vop_kqfilter {
    211      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    212      1.31  jdolecek 	IN struct knote *kn;
    213       1.1   mycroft };
    214       1.1   mycroft 
    215      1.13      fvdl #
    216      1.13      fvdl #% revoke     vp      U U U
    217      1.13      fvdl #
    218      1.13      fvdl vop_revoke {
    219      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    220      1.13      fvdl 	IN int flags;
    221      1.13      fvdl };
    222      1.13      fvdl 
    223      1.44     perry #     
    224      1.30       chs #% mmap      vp      = = =
    225      1.13      fvdl #
    226       1.1   mycroft vop_mmap {
    227       1.1   mycroft 	IN struct vnode *vp;
    228      1.54     pooka 	IN vm_prot_t prot;
    229      1.50      elad 	IN kauth_cred_t cred;
    230       1.1   mycroft };
    231       1.1   mycroft 
    232      1.13      fvdl #
    233      1.13      fvdl #% fsync      vp      L L L
    234      1.13      fvdl #
    235       1.1   mycroft vop_fsync {
    236      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    237      1.50      elad 	IN kauth_cred_t cred;
    238      1.14    kleink 	IN int flags;
    239      1.37       wiz 	IN off_t offlo;
    240      1.37       wiz 	IN off_t offhi;
    241       1.1   mycroft };
    242       1.1   mycroft 
    243      1.13      fvdl #
    244      1.13      fvdl # Needs work: Is newoff right?  What's it mean?
    245      1.45     isaki # XXX Locking protocol?
    246      1.13      fvdl #
    247       1.1   mycroft vop_seek {
    248       1.1   mycroft 	IN struct vnode *vp;
    249       1.1   mycroft 	IN off_t oldoff;
    250       1.1   mycroft 	IN off_t newoff;
    251      1.50      elad 	IN kauth_cred_t cred;
    252       1.1   mycroft };
    253       1.1   mycroft 
    254      1.13      fvdl #
    255      1.13      fvdl #% remove     dvp     L U U
    256      1.13      fvdl #% remove     vp      L U U
    257      1.13      fvdl #
    258      1.22  wrstuden #! remove cnp	DELETE, LOCKPARENT | LOCKLEAF
    259      1.22  wrstuden #
    260       1.1   mycroft vop_remove {
    261      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    262      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *vp;
    263       1.1   mycroft 	IN struct componentname *cnp;
    264       1.1   mycroft };
    265       1.1   mycroft 
    266      1.13      fvdl #
    267      1.52       gdt #% link               dvp     L U U
    268      1.13      fvdl #% link               vp      U U U
    269      1.13      fvdl #
    270      1.22  wrstuden #! link	 cnp	CREATE, LOCKPARENT
    271      1.22  wrstuden #
    272       1.1   mycroft vop_link {
    273      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    274      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    275       1.1   mycroft 	IN struct componentname *cnp;
    276       1.1   mycroft };
    277       1.1   mycroft 
    278      1.13      fvdl #
    279      1.13      fvdl #% rename     fdvp    U U U
    280      1.13      fvdl #% rename     fvp     U U U
    281      1.13      fvdl #% rename     tdvp    L U U
    282      1.13      fvdl #% rename     tvp     X U U
    283      1.13      fvdl #
    284  1.58.8.2     rmind #! rename fcnp	DELETE,	LOCKPARENT
    285  1.58.8.2     rmind #! rename tcnp	RENAME, LOCKPARENT | LOCKLEAF | NOCACHE
    286      1.22  wrstuden #
    287       1.1   mycroft vop_rename {
    288      1.41   thorpej 	IN LOCKED=NO WILLRELE struct vnode *fdvp;
    289      1.41   thorpej 	IN LOCKED=NO WILLRELE struct vnode *fvp;
    290       1.1   mycroft 	IN struct componentname *fcnp;
    291      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *tdvp;
    292      1.33  jdolecek 	IN WILLPUT struct vnode *tvp;
    293       1.1   mycroft 	IN struct componentname *tcnp;
    294       1.1   mycroft };
    295       1.1   mycroft 
    296      1.13      fvdl #
    297      1.13      fvdl #% mkdir      dvp     L U U
    298      1.44     perry #% mkdir      vpp     - L - 
    299      1.13      fvdl #
    300      1.22  wrstuden #! mkdir cnp	CREATE, LOCKPARENT
    301      1.22  wrstuden #
    302       1.1   mycroft vop_mkdir {
    303      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    304      1.53     pooka 	OUT WILLMAKE struct vnode **vpp;
    305       1.1   mycroft 	IN struct componentname *cnp;
    306       1.1   mycroft 	IN struct vattr *vap;
    307       1.1   mycroft };
    308       1.1   mycroft 
    309      1.13      fvdl #
    310      1.13      fvdl #% rmdir      dvp     L U U
    311      1.13      fvdl #% rmdir      vp      L U U
    312      1.13      fvdl #
    313      1.22  wrstuden #! rmdir cnp	DELETE, LOCKPARENT | LOCKLEAF
    314      1.22  wrstuden #
    315       1.1   mycroft vop_rmdir {
    316      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    317      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *vp;
    318       1.1   mycroft 	IN struct componentname *cnp;
    319       1.1   mycroft };
    320       1.1   mycroft 
    321      1.13      fvdl #
    322      1.13      fvdl #% symlink    dvp     L U U
    323      1.29     assar #% symlink    vpp     - L -
    324      1.13      fvdl #
    325      1.22  wrstuden #! symlink cnp	CREATE, LOCKPARENT
    326      1.22  wrstuden #
    327       1.1   mycroft vop_symlink {
    328      1.41   thorpej 	IN LOCKED=YES WILLPUT struct vnode *dvp;
    329      1.53     pooka 	OUT WILLMAKE struct vnode **vpp;
    330       1.1   mycroft 	IN struct componentname *cnp;
    331       1.1   mycroft 	IN struct vattr *vap;
    332       1.1   mycroft 	IN char *target;
    333       1.1   mycroft };
    334       1.1   mycroft 
    335      1.13      fvdl #
    336      1.44     perry #% readdir    vp      L L L   
    337      1.13      fvdl #
    338       1.1   mycroft vop_readdir {
    339      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    340       1.1   mycroft 	INOUT struct uio *uio;
    341      1.50      elad 	IN kauth_cred_t cred;
    342       1.1   mycroft 	OUT int *eofflag;
    343      1.13      fvdl 	OUT off_t **cookies;
    344      1.13      fvdl 	IN int *ncookies;
    345       1.1   mycroft };
    346       1.1   mycroft 
    347      1.13      fvdl #
    348      1.13      fvdl #% readlink   vp      L L L
    349      1.13      fvdl #
    350       1.1   mycroft vop_readlink {
    351      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    352       1.1   mycroft 	INOUT struct uio *uio;
    353      1.50      elad 	IN kauth_cred_t cred;
    354       1.1   mycroft };
    355       1.1   mycroft 
    356      1.13      fvdl #
    357      1.13      fvdl #% abortop    dvp     = = =
    358      1.13      fvdl #
    359      1.22  wrstuden #! abortop cnp	as appropriate.
    360      1.22  wrstuden #
    361       1.1   mycroft vop_abortop {
    362       1.1   mycroft 	IN struct vnode *dvp;
    363       1.1   mycroft 	IN struct componentname *cnp;
    364       1.1   mycroft };
    365       1.1   mycroft 
    366      1.13      fvdl #
    367      1.44     perry #% inactive   vp      L U U  
    368      1.13      fvdl #
    369       1.1   mycroft vop_inactive {
    370      1.41   thorpej 	IN LOCKED=YES WILLUNLOCK struct vnode *vp;
    371      1.56        ad 	INOUT bool *recycle;
    372       1.1   mycroft };
    373       1.1   mycroft 
    374      1.13      fvdl #
    375      1.13      fvdl #% reclaim    vp      U U U
    376      1.13      fvdl #
    377       1.1   mycroft vop_reclaim {
    378      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    379       1.1   mycroft };
    380       1.1   mycroft 
    381      1.13      fvdl #
    382      1.13      fvdl #% lock               vp      U L U
    383      1.13      fvdl #
    384       1.1   mycroft vop_lock {
    385      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    386      1.13      fvdl 	IN int flags;
    387       1.1   mycroft };
    388       1.1   mycroft 
    389      1.13      fvdl #
    390      1.13      fvdl #% unlock     vp      L U L
    391      1.13      fvdl #
    392       1.1   mycroft vop_unlock {
    393      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    394       1.1   mycroft };
    395       1.1   mycroft 
    396      1.13      fvdl #
    397      1.40      yamt #% bmap               vp      = = =
    398      1.13      fvdl #% bmap               vpp     - U -
    399      1.13      fvdl #
    400       1.1   mycroft vop_bmap {
    401      1.48      yamt 	IN struct vnode *vp;
    402       1.1   mycroft 	IN daddr_t bn;
    403       1.1   mycroft 	OUT struct vnode **vpp;
    404       1.1   mycroft 	IN daddr_t *bnp;
    405       1.1   mycroft 	OUT int *runp;
    406       1.1   mycroft };
    407       1.1   mycroft 
    408      1.13      fvdl #
    409      1.38   hannken #% strategy   vp      = = =
    410      1.13      fvdl #
    411      1.38   hannken vop_strategy {
    412      1.38   hannken 	IN struct vnode *vp;
    413      1.38   hannken 	IN struct buf *bp;
    414      1.38   hannken };
    415       1.1   mycroft 
    416      1.13      fvdl #
    417      1.13      fvdl #% print      vp      = = =
    418      1.13      fvdl #
    419       1.1   mycroft vop_print {
    420       1.1   mycroft 	IN struct vnode *vp;
    421       1.1   mycroft };
    422       1.1   mycroft 
    423      1.13      fvdl #
    424      1.13      fvdl #% islocked   vp      = = =
    425      1.13      fvdl #
    426       1.1   mycroft vop_islocked {
    427       1.1   mycroft 	IN struct vnode *vp;
    428       1.1   mycroft };
    429       1.1   mycroft 
    430      1.13      fvdl #
    431      1.13      fvdl #% pathconf   vp      L L L
    432      1.13      fvdl #
    433       1.1   mycroft vop_pathconf {
    434      1.41   thorpej 	IN LOCKED=YES struct vnode *vp;
    435       1.1   mycroft 	IN int name;
    436       1.3       cgd 	OUT register_t *retval;
    437       1.1   mycroft };
    438       1.1   mycroft 
    439      1.13      fvdl #
    440      1.13      fvdl #% advlock    vp      U U U
    441      1.13      fvdl #
    442       1.1   mycroft vop_advlock {
    443      1.41   thorpej 	IN LOCKED=NO struct vnode *vp;
    444      1.32  jdolecek 	IN void *id;
    445       1.1   mycroft 	IN int op;
    446       1.1   mycroft 	IN struct flock *fl;
    447       1.1   mycroft 	IN int flags;
    448       1.1   mycroft };
    449       1.1   mycroft 
    450      1.13      fvdl #
    451      1.13      fvdl #% whiteout   dvp     L L L
    452      1.13      fvdl #% whiteout   cnp     - - -
    453      1.13      fvdl #% whiteout   flag    - - -
    454      1.22  wrstuden #
    455      1.22  wrstuden #! whiteout cnp	CREATE, LOCKPARENT
    456      1.44     perry # 
    457       1.7   mycroft vop_whiteout {
    458      1.41   thorpej 	IN LOCKED=YES struct vnode *dvp;
    459       1.7   mycroft 	IN struct componentname *cnp;
    460       1.7   mycroft 	IN int flags;
    461       1.1   mycroft };
    462       1.1   mycroft 
    463      1.13      fvdl #
    464       1.1   mycroft # Needs work: no vp?
    465      1.13      fvdl #
    466       1.1   mycroft #vop_bwrite {
    467       1.1   mycroft #	IN struct buf *bp;
    468       1.1   mycroft #};
    469      1.26       chs 
    470      1.26       chs #
    471      1.39      yamt #% getpages	vp = = =
    472      1.26       chs #
    473      1.26       chs vop_getpages {
    474      1.26       chs 	IN struct vnode *vp;
    475      1.26       chs 	IN voff_t offset;
    476      1.27       chs 	IN struct vm_page **m;
    477      1.26       chs 	IN int *count;
    478      1.26       chs 	IN int centeridx;
    479      1.26       chs 	IN vm_prot_t access_type;
    480      1.26       chs 	IN int advice;
    481      1.26       chs 	IN int flags;
    482      1.26       chs };
    483      1.26       chs 
    484      1.26       chs #
    485      1.30       chs #% putpages	vp = = =
    486      1.26       chs #
    487      1.26       chs vop_putpages {
    488      1.26       chs 	IN struct vnode *vp;
    489      1.30       chs 	IN voff_t offlo;
    490      1.30       chs 	IN voff_t offhi;
    491      1.26       chs 	IN int flags;
    492      1.26       chs };
    493      1.42   thorpej 
    494      1.42   thorpej #
    495      1.42   thorpej #% closeextattr	vp L L L
    496      1.42   thorpej #
    497      1.42   thorpej vop_closeextattr {
    498      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    499      1.42   thorpej 	IN int commit;
    500      1.50      elad 	IN kauth_cred_t cred;
    501      1.42   thorpej };
    502      1.42   thorpej 
    503      1.42   thorpej #
    504      1.42   thorpej #% getextattr	vp L L L
    505      1.42   thorpej #
    506      1.42   thorpej vop_getextattr {
    507      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    508      1.42   thorpej 	IN int attrnamespace;
    509      1.42   thorpej 	IN const char *name;
    510      1.42   thorpej 	INOUT struct uio *uio;
    511      1.42   thorpej 	OUT size_t *size;
    512      1.50      elad 	IN kauth_cred_t cred;
    513      1.42   thorpej };
    514      1.42   thorpej 
    515      1.42   thorpej #
    516      1.42   thorpej #% listextattr	vp L L L
    517      1.42   thorpej #
    518      1.42   thorpej vop_listextattr {
    519      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    520      1.42   thorpej 	IN int attrnamespace;
    521      1.42   thorpej 	INOUT struct uio *uio;
    522      1.42   thorpej 	OUT size_t *size;
    523      1.50      elad 	IN kauth_cred_t cred;
    524      1.42   thorpej };
    525      1.42   thorpej 
    526      1.42   thorpej #
    527      1.42   thorpej #% openextattr	vp L L L
    528      1.42   thorpej #
    529      1.42   thorpej vop_openextattr {
    530      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    531      1.50      elad 	IN kauth_cred_t cred;
    532      1.42   thorpej };
    533      1.42   thorpej 
    534      1.42   thorpej #
    535      1.42   thorpej #% deleteextattr vp L L L
    536      1.42   thorpej #
    537      1.42   thorpej vop_deleteextattr {
    538      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    539      1.42   thorpej 	IN int attrnamespace;
    540      1.42   thorpej 	IN const char *name;
    541      1.50      elad 	IN kauth_cred_t cred;
    542      1.42   thorpej };
    543      1.42   thorpej 
    544      1.42   thorpej #
    545      1.42   thorpej #% setextattr	vp L L L
    546      1.42   thorpej #
    547      1.42   thorpej vop_setextattr {
    548      1.42   thorpej 	IN LOCKED=YES struct vnode *vp;
    549      1.42   thorpej 	IN int attrnamespace;
    550      1.42   thorpej 	IN const char *name;
    551      1.42   thorpej 	INOUT struct uio *uio;
    552      1.50      elad 	IN kauth_cred_t cred;
    553      1.42   thorpej };
    554