VOP_ATTRIB.9 (440cec3faf778469b36b998bb52aab7fbc43eae3) VOP_ATTRIB.9 (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 14 unchanged lines hidden (view full) ---

23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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.\" $FreeBSD$
30.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1996 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 14 unchanged lines hidden (view full) ---

23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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.\" $FreeBSD$
30.\"
31.Dd August 8, 2020
31.Dd October 2, 2021
32.Dt VOP_ATTRIB 9
33.Os
34.Sh NAME
35.Nm VOP_GETATTR ,
36.Nm VOP_SETATTR
37.Nd get and set attributes on a file or directory
38.Sh SYNOPSIS
39.In sys/param.h
40.In sys/vnode.h
41.Ft int
42.Fn VOP_GETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
43.Ft int
44.Fn VOP_SETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
45.Ft int
46.Fn VOP_STAT "struct vnode *vp" "struct stat *sb" "struct ucred *active_cred" \
32.Dt VOP_ATTRIB 9
33.Os
34.Sh NAME
35.Nm VOP_GETATTR ,
36.Nm VOP_SETATTR
37.Nd get and set attributes on a file or directory
38.Sh SYNOPSIS
39.In sys/param.h
40.In sys/vnode.h
41.Ft int
42.Fn VOP_GETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
43.Ft int
44.Fn VOP_SETATTR "struct vnode *vp" "struct vattr *vap" "struct ucred *cred"
45.Ft int
46.Fn VOP_STAT "struct vnode *vp" "struct stat *sb" "struct ucred *active_cred" \
47"struct ucred *file_cred" "struct thread *td"
47"struct ucred *file_cred"
48.Sh DESCRIPTION
49These entry points manipulate various attributes of a file or directory,
50including file permissions, owner, group, size,
51access time and modification time.
52.Pp
53.Fn VOP_STAT
54returns data in a format suitable for the
55.Xr stat 2

--- 22 unchanged lines hidden (view full) ---

78.It Fa vp
79The vnode of the file.
80.It Fa sb
81The attributes of the file.
82.It Fa active_cred
83The user credentials of the calling thread.
84.It Fa file_cred
85The credentials installed on the file description pointing to the vnode or NOCRED.
48.Sh DESCRIPTION
49These entry points manipulate various attributes of a file or directory,
50including file permissions, owner, group, size,
51access time and modification time.
52.Pp
53.Fn VOP_STAT
54returns data in a format suitable for the
55.Xr stat 2

--- 22 unchanged lines hidden (view full) ---

78.It Fa vp
79The vnode of the file.
80.It Fa sb
81The attributes of the file.
82.It Fa active_cred
83The user credentials of the calling thread.
84.It Fa file_cred
85The credentials installed on the file description pointing to the vnode or NOCRED.
86.It Fa td
87The calling thread.
88.El
89.Pp
90Attributes which are not being modified by
91.Fn VOP_SETATTR
92should be set to the value
93.Dv VNOVAL ;
94.Fn VATTR_NULL
95may be used to clear all the values, and should generally be used to reset

--- 44 unchanged lines hidden ---
86.El
87.Pp
88Attributes which are not being modified by
89.Fn VOP_SETATTR
90should be set to the value
91.Dv VNOVAL ;
92.Fn VATTR_NULL
93may be used to clear all the values, and should generally be used to reset

--- 44 unchanged lines hidden ---