Subject: Re: questions regarding vnode/vfs implementation
To: None <vkanchan@s3.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 01/06/1997 12:07:49
On Mon, 06 Jan 1997 10:10:06 -0800 
 "V. Kanchan" <vkanchan@s3.com> wrote:

 > 2.  Can VOP_LOCK/VOP_UNLOCK be implemented at the vnode level ?

There are two layers to the vnode locking mechanism, as I understand
it... The vnode itself, and the underlying object.  VOP_LOCK/VOP_UNLOCK
operate on the underlying object (e.g. FFS inode).  Look at vfs_subr.c
for places where the vnode itself is locked.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939