text: NAME
  VOP_OPEN, VOP_CLOSE - open or close a file
  SYNOPSIS
  #include <sys/param.h> #include <sys/vnode.h> int VOP_OPEN(struct vnode *vp, int mode, struct ucred *cred, struct thread *td, int fdid. Additionally, VOP_OPEN() can accept a file descriptor number in fdidx; this is useful for file systems which require such information, e.g., fdescfs(5)..
  IMPLEMENTATION NOTES
  The fdidx argument to VOP_OPEN() is currently unused, use ‘-1’ for the meantime; however, this will change in future.
  RETURN VALUES
  Zero is returned on success, otherwise an error code is returned.
  PSEUDOCODE
  int vop_open(struct vnode *vp, int mode, struct ucred *cred, struct thread *td) { /* * Most file systems don’t do much here. */ return 0; }
  SEE ALSO
  vnode(9), VOP_LOOKUP(9)
  AUTHORS
  This manual page was written by Doug Rabson.