mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 21:26:51 +00:00
Bring more VOP manual pages up to date in regards to locking
requirements.
This commit is contained in:
parent
fe11eb74af
commit
065aee8253
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51619
|
@ -64,7 +64,7 @@ Attributes which are not being modified by
|
||||||
should be set to the value
|
should be set to the value
|
||||||
.Dv VNOVAL .
|
.Dv VNOVAL .
|
||||||
.Sh LOCKS
|
.Sh LOCKS
|
||||||
The file should not be locked on entry.
|
The file will not be locked on entry and should not be locked on return.
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
.Xr VOP_GETATTR 9
|
.Xr VOP_GETATTR 9
|
||||||
returns information about the file in
|
returns information about the file in
|
||||||
|
|
|
@ -59,11 +59,11 @@ the vnode of the target file (if it exists)
|
||||||
pathname information about the file's new name
|
pathname information about the file's new name
|
||||||
.El
|
.El
|
||||||
.Sh LOCKS
|
.Sh LOCKS
|
||||||
The destination directory and file (if it exists) should be locked on entry.
|
The source directory and file will have their ref count bumped on entry.
|
||||||
The source directory and file
|
The destination directory and file will be locked and referenced on entry.
|
||||||
will be released on exit.
|
The procedure must release (not unlock) the source directory and file,
|
||||||
The destination directory and file (if it exists) will be unlocked
|
and must relase and unlock (i.e. vput) the destination directory and file
|
||||||
and released on exit.
|
prior to return.
|
||||||
.Sh PSEUDOCODE
|
.Sh PSEUDOCODE
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in a new issue