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

FreeBSD Manual Pages

  
 
  

home | help
VOP_BLKATOFF(9)	       FreeBSD Kernel Developer's Manual       VOP_BLKATOFF(9)

NAME
     VOP_BLKATOFF -- return a filesystem buffer	for part of a file

SYNOPSIS
     #include <sys/vnode.h>
     #include <sys/buf.h>

     int
     VOP_BLKATOFF(struct vnode *vp, off_t offset, char **res,
	 struct	buf **bpp);

DESCRIPTION
     The arguments are:

     vp	     The vnode representing the	file.

     offset  The byte offset into the file where the buffer should start.

     res     Return parameter for a pointer to the last	valid byte in the
	     buffer.

     bpp     Return parameter for the buffer.

     Return buffer with	the contents of	block offset from the beginning	of
     file ip.  res is non-zero,	fill it	in with	a pointer to the remaining
     space in the directory.

     This call is only used internally by the UFS filesystem.

RETURN VALUES
     Zero is returned on success, otherwise an error is	returned.

SEE ALSO
     vnode(9), buf(9)

AUTHORS
     This man page was written by Doug Rabson.

FreeBSD	11.1			 July 24, 1996			  FreeBSD 11.1

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | AUTHORS

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

home | help