Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount.h50 static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint32_t fd,
63 req.mnt_id = mnt_id;
73 static inline ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id,
79 .mnt_id = mnt_id,
91 static inline struct statmount *statmount_alloc(uint64_t mnt_id, uint64_t mnt_ns_id,
103 ret = statmount(mnt_id, mnt_ns_id, 0, mask, buf, bufsize, flags);
10 statmount(uint64_t mnt_id,uint64_t mnt_ns_id,uint64_t mask,struct statmount * buf,size_t bufsize,unsigned int flags) statmount() argument
28 listmount(uint64_t mnt_id,uint64_t mnt_ns_id,uint64_t last_mnt_id,uint64_t list[],size_t num,unsigned int flags) listmount() argument
H A Dstatmount_test.c252 if (sm.mnt_id != root_id) { in test_statmount_zero_mask()
254 (unsigned long long) sm.mnt_id, in test_statmount_zero_mask()
36 statmount_alloc(uint64_t mnt_id,uint64_t mask,unsigned int flags) statmount_alloc() argument
/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/samples/vfs/
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()
/linux/fs/
H A Dfhandle.c20 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
162 err = do_sys_name_to_handle(&path, handle, mnt_id, in SYSCALL_DEFINE5()
H A Dnamespace.c218 res = __xa_alloc(&mnt_id_xa, &mnt->mnt_id, mnt, xa_limit_31b, GFP_KERNEL); in mnt_alloc_id()
227 xa_erase(&mnt_id_xa, mnt->mnt_id); in mnt_free_id()
1484 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at() argument
1492 if (mnt_id <= m->mnt_id_unique) { in mnt_find_id_at()
1494 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at()
1508 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse() argument
1516 if (mnt_id >= m->mnt_id_unique) { in mnt_find_id_at_reverse()
1518 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at_reverse()
5309 s->sm.mnt_id = m->mnt_id_unique; in statmount_mnt_basic()
5311 s->sm.mnt_id_old = m->mnt_id; in statmount_mnt_basic()
[all …]
/linux/tools/include/uapi/linux/
H A Dmount.h166 __u64 mnt_id; /* Unique ID of mount */
167 __u64 mnt_parent_id; /* Unique ID of parent (for root == mnt_id) */
206 __u64 mnt_id;
235 * Special @mnt_id values that can be passed to listmount
164 __u64 mnt_id; /* Unique ID of mount */ global() member
189 __u64 mnt_id; global() member
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h165 __u64 mnt_id; /* Unique ID of mount */ member
205 __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()
/linux/Documentation/gpu/
H A Dpanfrost.rst21 mnt_id: 27
/linux/include/linux/
H A Dfsnotify_backend.h335 u64 mnt_id; member
418 return mnt_data ? mnt_data->mnt_id : 0; in fsnotify_data_mnt_id()
/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c1821 __u64 mnt_id = 0; in TEST_F() local
1852 mnt_id = stx.stx_mnt_id; in TEST_F()
1860 ASSERT_EQ(stx.stx_mnt_id, mnt_id); in TEST_F()
/linux/tools/testing/selftests/filesystems/mount-notify/
H A Dmount-notify_test.c159 return mnt->mnt_id; in expect_notify()
H A Dmount-notify_test_ns.c186 return mnt->mnt_id; in expect_notify()
/linux/fs/notify/
H A Dfsnotify.c698 .mnt_id = real_mount(mnt)->mnt_id_unique, in fsnotify_mnt()