Skip to content

Commit

Permalink
vfs: fix description comment of vfs_lookup()
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ostapenko <pm@igoro.pro>
Reviewed by: imp, mhorne
Pull Request: #737
  • Loading branch information
ihoro authored and bsdimp committed Jun 27, 2023
1 parent 21c32ce commit 5958cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/kern/vfs_lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ vfs_lookup_failifexists(struct nameidata *ndp)
* Search a pathname.
* This is a very central and rather complicated routine.
*
* The pathname is pointed to by ni_ptr and is of length ni_pathlen.
* The pathname is pointed to by cn_nameptr and is of length ni_pathlen.
* The starting directory is taken from ni_startdir. The pathname is
* descended until done, or a symbolic link is encountered. The variable
* ni_more is clear if the path is completed; it is set to one if a
Expand All @@ -898,7 +898,7 @@ vfs_lookup_failifexists(struct nameidata *ndp)
* Overall outline of lookup:
*
* dirloop:
* identify next component of name at ndp->ni_ptr
* identify next component of name at ndp->ni_cnd.cn_nameptr
* handle degenerate case where name is null string
* if .. and crossing mount points and on mounted filesys, find parent
* call VOP_LOOKUP routine for next component name
Expand Down

0 comments on commit 5958cd8

Please sign in to comment.