| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test_ns.c | 62 static int get_mnt_ns_id(const char *mnt_ns, uint64_t *mnt_ns_id) in get_mnt_ns_id() argument 73 if (ioctl(fd, NS_GET_MNTNS_ID, mnt_ns_id) < 0) { in get_mnt_ns_id() 93 uint64_t mnt_ns_id; in _test_statmount_mnt_ns_id() local 97 ret = get_mnt_ns_id("/proc/self/ns/mnt", &mnt_ns_id); in _test_statmount_mnt_ns_id() 121 if (sm.mnt_ns_id != mnt_ns_id) { in _test_statmount_mnt_ns_id() 123 (unsigned long long)sm.mnt_ns_id, in _test_statmount_mnt_ns_id() 124 (unsigned long long)mnt_ns_id); in _test_statmount_mnt_ns_id() 134 uint64_t mnt_ns_id; in test_statmount_mnt_ns_id() 138 ret = get_mnt_ns_id("/proc/self/ns/mnt", &mnt_ns_id); in test_statmount_mnt_ns_id() 157 uint64_t mnt_ns_id; validate_external_listmount() local [all...] |
| H A D | statmount.h | 46 static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint32_t fd, 60 if (mnt_ns_id) { 62 req.mnt_ns_id = mnt_ns_id; 69 static inline ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id, 79 if (mnt_ns_id) { 81 req.mnt_ns_id = mnt_ns_id; 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
|
| /linux/samples/vfs/ |
| H A D | mountinfo.c | 36 static int statmount(__u64 mnt_id, __u64 mnt_ns_id, __u64 mask, in statmount() argument 46 if (mnt_ns_id) { in statmount() 48 req.mnt_ns_id = mnt_ns_id; in statmount() 54 static ssize_t listmount(__u64 mnt_id, __u64 mnt_ns_id, __u64 last_mnt_id, in listmount() argument 63 if (mnt_ns_id) { in listmount() 65 req.mnt_ns_id = mnt_ns_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() 169 static int dump_mounts(__u64 mnt_ns_id) in dump_mounts() argument [all …]
|
| /linux/tools/testing/selftests/filesystems/nsfs/ |
| H A D | iterate_mntns.c | 23 __u64 mnt_ns_id; member 37 __u64 mnt_ns_id[MNT_NS_COUNT]; in FIXTURE() local 40 static inline bool mntns_in_list(__u64 *mnt_ns_id, struct mnt_ns_info *info) in mntns_in_list() argument 43 if (mnt_ns_id[i] == info->mnt_ns_id) in mntns_in_list() 61 self->mnt_ns_id[i] = info.mnt_ns_id; in FIXTURE_SETUP() 88 if (mntns_in_list(self->mnt_ns_id, &info)) in TEST_F() 111 if (mntns_in_list(self->mnt_ns_id, &info)) in TEST_F()
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 176 __u64 mnt_ns_id; /* ID of the mount namespace */ 207 __u64 mnt_ns_id; 223 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 175 __u64 mnt_ns_id; /* ID of the mount namespace */ global() member 203 __u64 mnt_ns_id; global() member
|
| H A D | nsfs.h | 31 __u64 mnt_ns_id; member
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 176 __u64 mnt_ns_id; /* ID of the mount namespace */ member 207 __u64 mnt_ns_id; member
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | nsid_test.c | 44 __u64 mnt_ns_id = 0; in TEST() local 53 ret = ioctl(fd_mntns, NS_GET_MNTNS_ID, &mnt_ns_id); in TEST() 55 ASSERT_NE(mnt_ns_id, 0); in TEST() 61 ASSERT_EQ(mnt_ns_id, mnt_ns_id2); in TEST()
|
| /linux/tools/include/uapi/linux/ |
| H A D | nsfs.h | 31 __u64 mnt_ns_id; member
|
| /linux/fs/ |
| H A D | namespace.c | 169 static struct mnt_namespace *lookup_mnt_ns(u64 mnt_ns_id) in lookup_mnt_ns() argument 175 ns = ns_tree_lookup_rcu(mnt_ns_id, CLONE_NEWNS); in lookup_mnt_ns() 5375 s->sm.mnt_ns_id = ns->ns.ns_id; in statmount_mnt_ns_id() 5684 static int do_statmount(struct kstatmount *s, u64 mnt_id, u64 mnt_ns_id, in do_statmount() argument 5705 if (mnt_ns_id && mnt_ns_empty(ns)) in do_statmount() 5871 if (kreq->mnt_id || kreq->mnt_ns_id) in copy_mnt_id_req() 5874 if (kreq->mnt_ns_fd != 0 && kreq->mnt_ns_id) in copy_mnt_id_req() 5892 if (kreq->mnt_ns_id) { in grab_requested_mnt_ns() 5893 mnt_ns = lookup_mnt_ns(kreq->mnt_ns_id); in grab_requested_mnt_ns() 5949 if (kreq.mnt_ns_id && (ns != current->nsproxy->mnt_ns) && in SYSCALL_DEFINE4() [all …]
|
| H A D | nsfs.c | 161 kinfo->mnt_ns_id = mnt_ns->ns.ns_id; in copy_ns_info_to_user()
|
| /linux/kernel/ |
| H A D | nstree.c | 494 static struct ns_common *lookup_ns_id(u64 mnt_ns_id, int ns_type) in lookup_ns_id() argument 499 ns = ns_tree_lookup_rcu(mnt_ns_id, ns_type); in lookup_ns_id()
|
| /linux/fs/autofs/ |
| H A D | inode.c | 254 sbi->mnt_ns_id = to_ns_common(current->nsproxy->mnt_ns)->ns_id; in autofs_alloc_sbi()
|
| H A D | dev-ioctl.c | 366 sbi->mnt_ns_id = to_ns_common(current->nsproxy->mnt_ns)->ns_id; in autofs_dev_ioctl_setpipefd()
|
| H A D | root.c | 347 if (sbi->mnt_ns_id != to_ns_common(current->nsproxy->mnt_ns)->ns_id) { in autofs_d_automount()
|