namei.9 (84306) | namei.9 (88509) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998, 1999 Eivind Eklund 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 16 unchanged lines hidden (view full) --- 25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.\" 29.\" 30.\" If you integrate this manpage in another OS, I'd appreciate a note 31.\" - eivind@FreeBSD.org 32.\" | 1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 1998, 1999 Eivind Eklund 4.\" 5.\" All rights reserved. 6.\" 7.\" This program is free software. 8.\" --- 16 unchanged lines hidden (view full) --- 25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28.\" 29.\" 30.\" If you integrate this manpage in another OS, I'd appreciate a note 31.\" - eivind@FreeBSD.org 32.\" |
33.\" $FreeBSD: head/share/man/man9/namei.9 84306 2001-10-01 16:09:29Z ru $ | 33.\" $FreeBSD: head/share/man/man9/namei.9 88509 2001-12-26 23:14:04Z davidc $ |
34.\" 35.Dd December 16, 1998 36.Os 37.Dt NAMEI 9 38.Sh NAME 39.Nm namei , 40.Nm NDINIT 41.Nd convert pathname to a pointer to a locked vnode 42.Sh SYNOPSIS | 34.\" 35.Dd December 16, 1998 36.Os 37.Dt NAMEI 9 38.Sh NAME 39.Nm namei , 40.Nm NDINIT 41.Nd convert pathname to a pointer to a locked vnode 42.Sh SYNOPSIS |
43.In sys/types.h | 43.In sys/param.h 44.In sys/proc.h |
44.In sys/namei.h 45.Ft int 46.Fn namei "struct nameidata *ndp" 47.Ft void | 45.In sys/namei.h 46.Ft int 47.Fn namei "struct nameidata *ndp" 48.Ft void |
48.Fn NDINIT "struct nameidata *ndp" "u_long operation" "u_long operflags" "enum uio_seg segflag" "const char *path" "struct proc *proc" | 49.Fn NDINIT "struct nameidata *ndp" "u_long operation" "u_long operflags" "enum uio_seg segflag" "const char *path" "struct thread *td" |
49.Ft void 50.Fn NDFREE "struct nameidata *ndp" "u_int operflags" 51.Sh DESCRIPTION 52.Fn namei 53is used to get from a pathname to a vnode for the object. 54This is a necessity to start doing VFS operations. The vnode 55returned will have its reference count increased; when you're through 56with it, you have to release it using either --- 27 unchanged lines hidden (view full) --- 84.It Ar operflags 85Operation flags. Several of these can be effective at the same time. 86.It Ar segflag 87Segment indicator. This tells if the name of the object is in 88userspace (UIO_USERSPACE) or in the kernel address space (UIO_SYSSPACE). 89.It Ar path 90Pointer to pathname buffer (the file or directory name that will be 91looked up) | 50.Ft void 51.Fn NDFREE "struct nameidata *ndp" "u_int operflags" 52.Sh DESCRIPTION 53.Fn namei 54is used to get from a pathname to a vnode for the object. 55This is a necessity to start doing VFS operations. The vnode 56returned will have its reference count increased; when you're through 57with it, you have to release it using either --- 27 unchanged lines hidden (view full) --- 85.It Ar operflags 86Operation flags. Several of these can be effective at the same time. 87.It Ar segflag 88Segment indicator. This tells if the name of the object is in 89userspace (UIO_USERSPACE) or in the kernel address space (UIO_SYSSPACE). 90.It Ar path 91Pointer to pathname buffer (the file or directory name that will be 92looked up) |
92.It Ar proc 93Which process context to use for the | 93.It Ar td 94Which thread context to use for the |
94.Fn namei 95locks. 96.El 97.Sh NAMEI OPERATION FLAGS 98.Fn namei 99takes the following set of 'operation flags' that influence 100how it operates: 101.Bl -tag -width WANTPARENT --- 109 unchanged lines hidden --- | 95.Fn namei 96locks. 97.El 98.Sh NAMEI OPERATION FLAGS 99.Fn namei 100takes the following set of 'operation flags' that influence 101how it operates: 102.Bl -tag -width WANTPARENT --- 109 unchanged lines hidden --- |