tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: struct file at VFS level (round 1.5)



On Tue, May 03, 2016 at 09:30:22AM +0200, Christoph Badura wrote:
>  - for the write case
>    off = current_file_offset
>    VOP_ADVLOCK(F_WRLCK, off, size_of_write)
>    VOP_WRITE(...)
>    VOP_ADVLOCK(F_UNLCK, off, size_of_write)

There is still the problem to set the appropriate lock owner
(which is struct file * or struct proc * depending of the case).
vn_write() has struct fiile available. vn_rdwr() does not have
it, 

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index