VOP_RECLAIM.9freebsd

Langue: en

Autres versions - même langue

Version: 365035 (ubuntu - 25/10/10)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

VOP_INACTIVE VOP_RECLAIM - reclaim file system resources for a vnode

SYNOPSIS

In sys/param.h In sys/vnode.h Ft int Fn VOP_INACTIVE struct vnode *vp struct thread *td Ft int Fn VOP_RECLAIM struct vnode *vp struct thread *td

DESCRIPTION

The arguments are:
Fa vp
The vnode being reclaimed.

Fn VOP_INACTIVE is called when the kernel is no longer using the vnode. This may be because the reference count reaches zero or it may be that the file system is being forcibly unmounted while there are open files. It can be used to reclaim space for `open but deleted' files.

Fn VOP_RECLAIM is called when a vnode is being reused for a different file system. Any file system specific resources associated with the vnode should be freed.

LOCKS

For VOP_INACTIVE, the Fa vp will be locked on entry. Your VOP_INACTIVE code must unlock the Fa vp prior to returning.

For VOP_RECLAIM, the Fa vp will not be locked on entry and should be left unlocked on return.

SEE ALSO

vnode(9)

AUTHORS

This manual page was written by An Doug Rabson .