| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount.h | 50 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 D | statmount_test.c | 255 if (sm.mnt_id != root_id) { in test_statmount_mnt_basic() 257 (unsigned long long) sm.mnt_id, in test_statmount_mnt_basic()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_file_handle_test.c | 146 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 D | mountinfo.c | 36 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 D | fhandle.c | 20 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 D | stat.c | 304 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() 731 tmp.stx_mnt_id = stat->mnt_id; in cp_statx()
|
| H A D | namespace.c | 232 res = __xa_alloc(&mnt_id_xa, &mnt->mnt_id, mnt, xa_limit_31b, GFP_KERNEL); in mnt_alloc_id() 241 xa_erase(&mnt_id_xa, mnt->mnt_id); in mnt_free_id() 1563 static struct mount *mnt_find_id_at(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at() argument 1571 if (mnt_id <= m->mnt_id_unique) { in mnt_find_id_at() 1573 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at() 1587 static struct mount *mnt_find_id_at_reverse(struct mnt_namespace *ns, u64 mnt_id) in mnt_find_id_at_reverse() argument 1595 if (mnt_id >= m->mnt_id_unique) { in mnt_find_id_at_reverse() 1597 if (mnt_id == m->mnt_id_unique) in mnt_find_id_at_reverse() 5501 s->sm.mnt_parent_id_old = m->mnt_parent->mnt_id; in statmount_mnt_parent() 5509 s->sm.mnt_id = m->mnt_id_unique; in statmount_mnt_basic() [all …]
|
| H A D | mount.h | 102 int mnt_id; /* mount identifier, reused */ member
|
| /linux/tools/include/uapi/linux/ |
| H A D | mount.h | 166 __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 D | mount.h | 166 __u64 mnt_id; /* Unique ID of mount */ member 206 __u64 mnt_id; member
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 167 __u64 mnt_id; /* Unique ID of mount */ member 207 __u64 mnt_id; member
|
| /linux/tools/testing/selftests/filesystems/umount_propagation/ |
| H A D | umount_propagation_test.c | 126 static bool mount_attached(__u64 mnt_id) in mount_attached() argument 137 if (strtoull(line, NULL, 10) == mnt_id) { in mount_attached()
|
| /linux/fs/notify/fanotify/ |
| H A D | fanotify.c | 569 static struct fanotify_event *fanotify_alloc_mnt_event(u64 mnt_id, gfp_t gfp) in fanotify_alloc_mnt_event() argument 578 pevent->mnt_id = mnt_id; in fanotify_alloc_mnt_event() 757 u64 mnt_id = fsnotify_data_mnt_id(data, data_type); in fanotify_alloc_event() local 864 } else if (mnt_id) { in fanotify_alloc_event() 865 event = fanotify_alloc_mnt_event(mnt_id, gfp); in fanotify_alloc_event()
|
| H A D | fanotify.h | 416 u64 mnt_id; member
|
| H A D | fanotify_user.c | 524 info.mnt_id = FANOTIFY_ME(event)->mnt_id; in copy_mnt_info_to_user()
|
| /linux/Documentation/gpu/ |
| H A D | panfrost.rst | 21 mnt_id: 27
|
| /linux/tools/testing/selftests/filesystems/open_tree_ns/ |
| H A D | open_tree_ns_test.c | 74 (unsigned long long)sm->mnt_id, in log_mount() 328 ASSERT_NE(sm.mnt_id, sm.mnt_parent_id); in TEST_F() 331 (unsigned long long)sm.mnt_id, in TEST_F()
|
| /linux/include/linux/ |
| H A D | fsnotify_backend.h | 336 u64 mnt_id; member 430 return mnt_data ? mnt_data->mnt_id : 0; in fsnotify_data_mnt_id()
|
| /linux/fs/proc/ |
| H A D | fd.c | 59 real_mount(file->f_path.mnt)->mnt_id, in seq_show()
|
| /linux/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 1821 __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/Documentation/filesystems/ |
| H A D | proc.rst | 2039 files have at least four fields -- 'pos', 'flags', 'mnt_id' and 'ino'. 2042 file has been created with [see open(2) for details] and 'mnt_id' represents 2051 mnt_id: 19 2068 mnt_id: 9 2081 mnt_id: 9 2095 mnt_id: 9 2113 mnt_id: 9 2136 mnt_id: 9 2139 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003 2143 call, 'mnt_id' is the mount point identifier, 'mflags' is the value of [all …]
|
| /linux/tools/testing/selftests/filesystems/mount-notify/ |
| H A D | mount-notify_test.c | 159 return mnt->mnt_id; in expect_notify()
|
| H A D | mount-notify_test_ns.c | 186 return mnt->mnt_id; in expect_notify()
|