Debian Codegraph @

upstream/debian-unstable/man2/mount_attr.2type

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH mount_attr 2type 2025-09-21 "Linux man-pages 6.18"
6 .SH NAME
7 mount_attr \- what mount properties to set and clear
8 .SH LIBRARY
9 Linux kernel headers
10 .SH SYNOPSIS
11 .EX
12 .B #include <sys/mount.h>
13 .P
14 .B struct mount_attr {
15 .BR " u64 attr_set;" " /* Mount properties to set */"
16 .BR " u64 attr_clr;" " /* Mount properties to clear */"
17 .BR " u64 propagation;" " /* Mount propagation type */"
18 .BR " u64 userns_fd;" " /* User namespace file descriptor */"
19 /* ...\& */
20 .B };
21 .EE
22 .SH DESCRIPTION
23 Specifies which mount properties should be changed with
24 .BR mount_setattr (2).
25 .P
26 The fields are as follows:
27 .TP
28 .I .attr_set
29 This field specifies which
30 .BI MOUNT_ATTR_ *
31 attribute flags to set.
32 .TP
33 .I .attr_clr
34 This field specifies which
35 .BI MOUNT_ATTR_ *
36 attribute flags to clear.
37 .TP
38 .I .propagation
39 This field specifies what mount propagation will be applied.
40 The valid values of this field are the same propagation types described in
41 .BR mount_namespaces (7).
42 .TP
43 .I .userns_fd
44 This field specifies a file descriptor that indicates which user namespace to
45 use as a reference for ID-mapped mounts with
46 .BR MOUNT_ATTR_IDMAP .
47 .SH STANDARDS
48 Linux.
49 .SH HISTORY
50 Linux 5.12.
51 .\" commit 2a1867219c7b27f928e2545782b86daaf9ad50bd
52 glibc 2.36.
53 .P
54 Extra fields may be appended to the structure,
55 with a zero value in a new field resulting in
56 the kernel behaving as though that extension field was not present.
57 Therefore, a user
58 .I must
59 zero-fill this structure on initialization.
60 .SH SEE ALSO
61 .BR mount_setattr (2)