Home
last modified time | relevance | path

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

/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()
139 (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
52 __u64 mnt_id; member
/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount.h10 static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint64_t mask, in statmount() argument
16 .mnt_id = mnt_id, in statmount()
28 static ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id, in listmount() argument
34 .mnt_id = mnt_id, in listmount()
H A Dstatmount_test.c37 static struct statmount *statmount_alloc(uint64_t mnt_id, uint64_t mask, unsigned int flags) in statmount_alloc() argument
45 ret = statmount(mnt_id, 0, mask, tmp, bufsize, flags); in statmount_alloc()
283 if (sm.mnt_id != root_id) { in test_statmount_mnt_basic()
285 (unsigned long long) sm.mnt_id, in test_statmount_mnt_basic()
H A Dstatmount_test_ns.c81 static int get_mnt_id(const char *path, uint64_t *mnt_id) in get_mnt_id() argument
98 *mnt_id = sx.stx_mnt_id; in get_mnt_id()
/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/fs/
H A Dfhandle.c19 void __user *mnt_id, bool unique_mntid, in do_sys_name_to_handle() argument
98 (u64 __user *) mnt_id)) in do_sys_name_to_handle()
101 if (put_user(real_mount(path->mnt)->mnt_id, in do_sys_name_to_handle()
102 (int __user *) mnt_id)) in do_sys_name_to_handle()
130 struct file_handle __user *, handle, void __user *, mnt_id, in SYSCALL_DEFINE5() argument
163 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.c288 stat->mnt_id = real_mount(path->mnt)->mnt_id_unique; in vfs_statx_path()
291 stat->mnt_id = real_mount(path->mnt)->mnt_id; in vfs_statx_path()
727 tmp.stx_mnt_id = stat->mnt_id; in cp_statx()
H A Dnamespace.c272 res = __xa_alloc(&mnt_id_xa, &mnt->mnt_id, mnt, XA_LIMIT(1, INT_MAX), GFP_KERNEL); in mnt_alloc_id()
281 xa_erase(&mnt_id_xa, mnt->mnt_id); in mnt_free_id()
1577 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at() argument
1585 if (mnt_id <= m->mnt_id_unique) { in mnt_find_id_at()
1587 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at()
1601 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse() argument
1609 if (mnt_id >= m->mnt_id_unique) { in mnt_find_id_at_reverse()
1611 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at_reverse()
4987 s->sm.mnt_id = m->mnt_id_unique; in statmount_mnt_basic()
4989 s->sm.mnt_id_old = m->mnt_id; in statmount_mnt_basic()
[all …]
H A Dmount.h80 int mnt_id; /* mount identifier, reused */ member
/linux/tools/include/uapi/linux/
H A Dmount.h
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h164 __u64 mnt_id; /* Unique ID of mount */ member
196 __u64 mnt_id; member
/linux/include/linux/
H A Dstat.h52 u64 mnt_id; member
H A Dsyscalls.h886 void __user *mnt_id, int flag);
/linux/Documentation/gpu/
H A Dpanfrost.rst21 mnt_id: 27
/linux/fs/notify/
H A Dfdinfo.c118 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()