Bring more VOP manual pages up to date in regards to locking

requirements.
This commit is contained in:
Matthew Dillon 1999-09-24 10:19:43 +00:00
parent fe11eb74af
commit 065aee8253
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51619
2 changed files with 6 additions and 6 deletions

View file

@ -64,7 +64,7 @@ Attributes which are not being modified by
should be set to the value
.Dv VNOVAL .
.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
.Xr VOP_GETATTR 9
returns information about the file in

View file

@ -59,11 +59,11 @@ the vnode of the target file (if it exists)
pathname information about the file's new name
.El
.Sh LOCKS
The destination directory and file (if it exists) should be locked on entry.
The source directory and file
will be released on exit.
The destination directory and file (if it exists) will be unlocked
and released on exit.
The source directory and file will have their ref count bumped on entry.
The destination directory and file will be locked and referenced on entry.
The procedure must release (not unlock) the source directory and file,
and must relase and unlock (i.e. vput) the destination directory and file
prior to return.
.Sh PSEUDOCODE
.Bd -literal
int