VOP_INACTIVE (9)
Leading comments
Copyright (c) 1996 Doug Rabson All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in...
NAME
VOP_INACTIVE VOP_RECLAIM - reclaim file system resources for a vnodeSYNOPSIS
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 *tdDESCRIPTION
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.