Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VOP_SEEK			     LOCAL			      VOP_SEEK

NAME
     VOP_SEEK -- seek to a given location in a file

SYNOPSIS
     #include <sys/vnode.h>

     int
     VOP_SEEK(struct vnode *vp,	off_t oldoff, off_t newoff,
	 struct	ucred *cred);

DESCRIPTION
     This seeks	to a given location in a file, possibly	extending the file.
     Most filesystems do not implement this entry point	and automatically
     extend the	file when it is	written	to.  In	fact, the only place in	the
     entire kernel where this is called	is from	the union filesystem and then
     only to implement its own VOP_SEEK	entry point.

     Its arguments are:

     vp	 the vnode of the file

     oldoff
	 an offset

     newoff
	 another offset

     cred
	 the caller's credentials

PSEUDOCODE
     int
     vop_seek(struct vnode *vp,	off_t oldoff, off_t newoff, struct ucred *cred)
     {
	 return	0;
     }

SEE ALSO
     vnode(9)

AUTHORS
     This man page was written by Doug Rabson.

FreeBSD	11.1			 July 24, 1996			  FreeBSD 11.1

NAME | SYNOPSIS | DESCRIPTION | PSEUDOCODE | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=VOP_SEEK&sektion=9&manpath=FreeBSD+2.2.1-RELEASE>

home | help