Be consistent with struct vattr' naming. Half of this manual used
vpp'
while the other half used `vap', and in one case resulted in code that made no sense. Replaced all of them with `vap'. (Typically, `vpp' is a pointer to a pointer to a struct vnode anyway).
This commit is contained in:
parent
a93a4c8c88
commit
70a58ec38a
@ -51,7 +51,7 @@ The arguments are:
|
||||
.Bl -tag -width cred
|
||||
.It Ar vp
|
||||
the vnode of the file
|
||||
.It Ar vpp
|
||||
.It Ar vap
|
||||
the attributes of the file
|
||||
.It Ar cred
|
||||
the user credentials of the calling process
|
||||
@ -81,11 +81,11 @@ appropriate error is returned.
|
||||
.Sh PSEUDOCODE
|
||||
.Bd -literal
|
||||
int
|
||||
vop_getattr(struct vnode *vp, struct vattr *vpp,
|
||||
vop_getattr(struct vnode *vp, struct vattr *vap,
|
||||
struct ucred *cred, struct proc *p)
|
||||
{
|
||||
/*
|
||||
* Fill in the contents of *vpp with information from
|
||||
* Fill in the contents of *vap with information from
|
||||
* the filesystem.
|
||||
*/
|
||||
...;
|
||||
@ -94,7 +94,7 @@ vop_getattr(struct vnode *vp, struct vattr *vpp,
|
||||
}
|
||||
|
||||
int
|
||||
vop_setattr(struct vnode *vp, struct vattr *vpp,
|
||||
vop_setattr(struct vnode *vp, struct vattr *vap,
|
||||
struct ucred *cred, struct proc *p)
|
||||
{
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user