table of contents
other versions
- wheezy 8.2-1
VOP_CREATEVOBJECT(9) | Kernel Developer's Manual | VOP_CREATEVOBJECT(9) |
NAME¶
VOP_CREATEVOBJECT, VOP_DESTROYVOBJECT, VOP_GETVOBJECT — VM object interactionSYNOPSIS¶
#include <sys/param.h>#include <sys/vnode.h> int
VOP_CREATEVOBJECT(struct vnode *vp, struct ucred *cred, struct thread *td); int
VOP_DESTROYVOBJECT(struct vnode *vp); int
VOP_GETVOBJECT(struct vnode *vp, struct vm_object **objpp);
DESCRIPTION¶
These calls are used to control the association of a VM object with a particular vnode. The arguments specific to these functions are:- vp
- The vnode of the file.
- objpp
- The VM object being returned, or
NULL
if the caller wants to test for the existence of the VM object).
RETURN VALUES¶
The VOP_CREATEVOBJECT(), VOP_DESTROYVOBJECT() and VOP_GETVOBJECT() functions return zero on success, or a non-zero value on failure. Zero is returned on success, otherwise an error is returned.EXAMPLES¶
By default, file systems leave VM object handling to the vop_std*() functions.SEE ALSO¶
vnode(9), VOP_GETPAGES(9), VOP_PUTPAGES(9)AUTHORS¶
This manual page was written by Boris Popov.September 10, 2000 | Debian |