getnewvnode.9 (571dba6ec9f25ecf7582dc2192daf1ceea70065f) | getnewvnode.9 (2164257702740979d6ffebaba02a3fd778aea2c3) |
---|---|
1.\" 2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 23 unchanged lines hidden (view full) --- 32.Sh NAME 33.Nm getnewvnode 34.Nd "get a new vnode" 35.Sh SYNOPSIS 36.In sys/param.h 37.In sys/vnode.h 38.In sys/mount.h 39.Ft int | 1.\" 2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 23 unchanged lines hidden (view full) --- 32.Sh NAME 33.Nm getnewvnode 34.Nd "get a new vnode" 35.Sh SYNOPSIS 36.In sys/param.h 37.In sys/vnode.h 38.In sys/mount.h 39.Ft int |
40.Fn getnewvnode "const char *tag" "struct mount *mp" "vop_t **vops" "struct vnode **vpp" | 40.Fn getnewvnode "enum vtagtype tag" "struct mount *mp" "vop_t **vops" "struct vnode **vpp" |
41.Sh DESCRIPTION 42The 43.Fn getnewvnode 44function initializes a new vnode, assigning it the vnode operations passed in 45.Fa vops . 46The vnode is either freshly allocated, or taken from the head of the 47free list depending on the number of vnodes already in the system. 48.Pp 49The arguments to 50.Fn getnewvnode 51are: 52.Bl -tag -width ".Fa vops" 53.It Fa tag | 41.Sh DESCRIPTION 42The 43.Fn getnewvnode 44function initializes a new vnode, assigning it the vnode operations passed in 45.Fa vops . 46The vnode is either freshly allocated, or taken from the head of the 47free list depending on the number of vnodes already in the system. 48.Pp 49The arguments to 50.Fn getnewvnode 51are: 52.Bl -tag -width ".Fa vops" 53.It Fa tag |
54The file system type string. 55This field should only be referenced for debugging or for userland utilities. | 54The filesystem type. |
56.It Fa mp 57The mount point to add the new vnode to. 58.It Fa vops 59The vnode operations to assign to the new vnode. 60.It Fa vpp 61Points to the new vnode upon successful completion. 62.El 63.Sh RETURN VALUES 64.Fn getnewvnode 65returns 0 on success. 66There are currently no failure conditions - that do not result in a panic. 67.Sh AUTHORS | 55.It Fa mp 56The mount point to add the new vnode to. 57.It Fa vops 58The vnode operations to assign to the new vnode. 59.It Fa vpp 60Points to the new vnode upon successful completion. 61.El 62.Sh RETURN VALUES 63.Fn getnewvnode 64returns 0 on success. 65There are currently no failure conditions - that do not result in a panic. 66.Sh AUTHORS |
68This manual page was written by | 67This man page was written by |
69.An Chad David Aq davidc@acns.ab.ca . | 68.An Chad David Aq davidc@acns.ab.ca . |