Home
last modified time | relevance | path

Searched refs:mnt_id (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/testing/selftests/pidfd/
H A Dpidfd_file_handle_test.c146 int mnt_id; in TEST_F() local
156 ASSERT_EQ(name_to_handle_at(self->child_pidfd1, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
193 int mnt_id; in TEST_F() local
203 ASSERT_EQ(name_to_handle_at(self->child_pidfd2, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
240 int mnt_id; in TEST_F() local
249 ASSERT_EQ(name_to_handle_at(self->pidfd, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
276 int mnt_id, pidfd, child_pidfd3; in TEST_F() local
285 ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
315 int mnt_id, pidfd, child_pidfd3; in TEST_F() local
324 ASSERT_EQ(name_to_handle_at(self->child_pidfd3, "", fh, &mnt_id, AT_EMPTY_PATH), 0); in TEST_F()
[all …]
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount.h46 static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint64_t mask, in statmount() argument
52 .mnt_id = mnt_id, in statmount()
64 static inline ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id, in listmount() argument
70 .mnt_id = mnt_id, in listmount()
H A Dstatmount_test.c36 static struct statmount *statmount_alloc(uint64_t mnt_id, uint64_t mask, unsigned int flags) in statmount_alloc() argument
44 ret = statmount(mnt_id, 0, mask, tmp, bufsize, flags); in statmount_alloc()
282 if (sm.mnt_id != root_id) { in test_statmount_mnt_basic()
284 (unsigned long long) sm.mnt_id, in test_statmount_mnt_basic()
/linux/samples/vfs/
H A Dtest-list-all-mounts.c14 static int __statmount(__u64 mnt_id, __u64 mnt_ns_id, __u64 mask, in __statmount() argument
20 .mnt_id = mnt_id, in __statmount()
28 static struct statmount *sys_statmount(__u64 mnt_id, __u64 mnt_ns_id, in sys_statmount() argument
41 ret = __statmount(mnt_id, mnt_ns_id, mask, stmnt, bufsize, flags); in sys_statmount()
58 static ssize_t sys_listmount(__u64 mnt_id, __u64 last_mnt_id, __u64 mnt_ns_id, in sys_listmount() argument
63 .mnt_id = mnt_id, in sys_listmount()
141 (uint64_t)stmnt->mnt_id, in main()
H A Dmountinfo.c36 static int statmount(__u64 mnt_id, __u64 mnt_ns_id, __u64 mask, in statmount() argument
42 .mnt_id = mnt_id, in statmount()
54 static ssize_t listmount(__u64 mnt_id, __u64 mnt_ns_id, __u64 last_mnt_id, in listmount() argument
59 .mnt_id = mnt_id, in listmount()
128 static int dump_mountinfo(__u64 mnt_id, __u64 mnt_ns_id) in dump_mountinfo() argument
138 ret = statmount(mnt_id, mnt_ns_id, mask, buf, STATMOUNT_BUFSIZE, 0); in dump_mountinfo()
145 printf("0x%llx 0x%llx 0x%llx ", mnt_ns_id, mnt_id, buf->mnt_parent_id); in dump_mountinfo()
H A Dsamples-vfs.h27 __u64 mnt_id; /* Unique ID of mount */ member
56 __u64 mnt_id; member
/linux/fs/
H A Dfhandle.c20 void __user *mnt_id, bool unique_mntid, in do_sys_name_to_handle() argument
99 (u64 __user *) mnt_id)) in do_sys_name_to_handle()
102 if (put_user(real_mount(path->mnt)->mnt_id, in do_sys_name_to_handle()
103 (int __user *) mnt_id)) in do_sys_name_to_handle()
131 struct file_handle __user *, handle, void __user *, mnt_id, in SYSCALL_DEFINE5() argument
164 err = do_sys_name_to_handle(&path, handle, mnt_id, in SYSCALL_DEFINE5()
H A Dproc_namespace.c143 seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, in show_mountinfo()
H A Dstat.c304 stat->mnt_id = real_mount(path->mnt)->mnt_id_unique; in vfs_statx_path()
307 stat->mnt_id = real_mount(path->mnt)->mnt_id; in vfs_statx_path()
739 tmp.stx_mnt_id = stat->mnt_id; in cp_statx()
H A Dnamespace.c233 res = __xa_alloc(&mnt_id_xa, &mnt->mnt_id, mnt, XA_LIMIT(1, INT_MAX), GFP_KERNEL); in mnt_alloc_id()
242 xa_erase(&mnt_id_xa, mnt->mnt_id); in mnt_free_id()
1493 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at() argument
1501 if (mnt_id <= m->mnt_id_unique) { in mnt_find_id_at()
1503 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at()
1517 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse() argument
1525 if (mnt_id >= m->mnt_id_unique) { in mnt_find_id_at_reverse()
1527 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at_reverse()
5169 s->sm.mnt_id = m->mnt_id_unique; in statmount_mnt_basic()
5171 s->sm.mnt_id_old = m->mnt_id; in statmount_mnt_basic()
[all …]
H A Dmount.h85 int mnt_id; /* mount identifier, reused */ member
/linux/tools/include/uapi/linux/
H A Dmount.h164 __u64 mnt_id; /* Unique ID of mount */ member
201 __u64 mnt_id; member
H A Dfanotify.h210 __u64 mnt_id; member
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h164 __u64 mnt_id; /* Unique ID of mount */ member
201 __u64 mnt_id; member
/linux/include/uapi/linux/
H A Dmount.h164 __u64 mnt_id; /* Unique ID of mount */ member
201 __u64 mnt_id; member
H A Dfanotify.h210 __u64 mnt_id; member
/linux/fs/notify/fanotify/
H A Dfanotify.c571 static struct fanotify_event *fanotify_alloc_mnt_event(u64 mnt_id, gfp_t gfp) in fanotify_alloc_mnt_event() argument
580 pevent->mnt_id = mnt_id; in fanotify_alloc_mnt_event()
759 u64 mnt_id = fsnotify_data_mnt_id(data, data_type); in fanotify_alloc_event() local
857 } else if (mnt_id) { in fanotify_alloc_event()
858 event = fanotify_alloc_mnt_event(mnt_id, gfp); in fanotify_alloc_event()
H A Dfanotify.h415 u64 mnt_id; member
/linux/include/linux/
H A Dstat.h52 u64 mnt_id; member
H A Dfsnotify_backend.h335 u64 mnt_id; member
418 return mnt_data ? mnt_data->mnt_id : 0; in fsnotify_data_mnt_id()
/linux/Documentation/gpu/
H A Dpanfrost.rst21 mnt_id: 27
H A Dpanthor.rst21 mnt_id: 29
/linux/fs/notify/
H A Dfdinfo.c124 mnt->mnt_id, mflags, mark->mask, mark->ignore_mask); in fanotify_fdinfo()
/linux/fs/proc/
H A Dfd.c59 real_mount(file->f_path.mnt)->mnt_id, in seq_show()
/linux/Documentation/filesystems/
H A Dproc.rst2008 files have at least four fields -- 'pos', 'flags', 'mnt_id' and 'ino'.
2011 file has been created with [see open(2) for details] and 'mnt_id' represents
2020 mnt_id: 19
2037 mnt_id: 9
2050 mnt_id: 9
2064 mnt_id: 9
2082 mnt_id: 9
2105 mnt_id: 9
2108 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003
2112 call, 'mnt_id' is the mount point identifier, 'mflags' is the value of
[all …]

12