VOP_LOCK(9) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

VOP_LOCK(9)

These calls are used to serialize access to the file system, such
as  to  prevent two writes to the same file from happening at the
same time.  The arguments are: The  vnode  being  locked  or  un‐
locked.   One  of the lock request types: Shared lock.  Exclusive
lock.  Shared-to-exclusive  upgrade.   Exclusive-to-shared  down‐
grade.   Release any type of lock.  Wait for all lock activity to
end.  The lock type may be with these lock flags: Do not sleep to
wait for lock.  Sleep, then return failure.  Allow recursive  ex‐
clusive  lock.   Instruct to ignore this instance.  The lock type
may be with these control flags: Specify when the caller  already
has  a  simple lock will unlock the simple lock after getting the
lock Retry until locked.  Kernel code should use to lock a  vnode
rather than calling directly.  also does not want a thread speci‐
fied  as  argument  but it assumes curthread to be used.  Zero is
returned on success, otherwise an error is returned.  This manual
page was written by


















































맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3