| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test_ns.c | 37 static int get_mnt_ns_id(const char *mnt_ns, uint64_t *mnt_ns_id) in wait_for_pid() 48 if (ioctl(fd, NS_GET_MNTNS_ID, mnt_ns_id) < 0) { in wait_for_pid() 68 uint64_t mnt_ns_id; in get_mnt_ns_id() 72 ret = get_mnt_ns_id("/proc/self/ns/mnt", &mnt_ns_id); in get_mnt_ns_id() 96 if (sm.mnt_ns_id != mnt_ns_id) { in _test_statmount_mnt_ns_id() 98 (unsigned long long)sm.mnt_ns_id, in _test_statmount_mnt_ns_id() 99 (unsigned long long)mnt_ns_id); in _test_statmount_mnt_ns_id() 109 uint64_t mnt_ns_id; in _test_statmount_mnt_ns_id() 113 ret = get_mnt_ns_id("/proc/self/ns/mnt", &mnt_ns_id); in _test_statmount_mnt_ns_id() 62 get_mnt_ns_id(const char * mnt_ns,uint64_t * mnt_ns_id) get_mnt_ns_id() argument 93 uint64_t mnt_ns_id; _test_statmount_mnt_ns_id() local 157 uint64_t mnt_ns_id; validate_external_listmount() local [all...] |
| H A D | statmount.h | 50 static inline int statmount(uint64_t mnt_id, uint64_t mnt_ns_id, uint32_t fd, 64 if (mnt_ns_id) { 66 req.mnt_ns_id = mnt_ns_id; 73 static inline ssize_t listmount(uint64_t mnt_id, uint64_t mnt_ns_id, 83 if (mnt_ns_id) { 85 req.mnt_ns_id = mnt_ns_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, 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 [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 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/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 177 __u64 mnt_ns_id; /* ID of the mount namespace */ 208 __u64 mnt_ns_id; 224 #define STATMOUNT_MNT_NS_ID 0x00000040U /* Want/got mnt_ns_id */ 176 __u64 mnt_ns_id; /* ID of the mount namespace */ global() member 207 __u64 mnt_ns_id; global() 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/include/uapi/linux/ |
| H A D | nsfs.h | 31 __u64 mnt_ns_id; member
|
| /linux/tools/include/uapi/linux/ |
| H A D | nsfs.h | 31 __u64 mnt_ns_id; member
|
| /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/ |
| 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() 5405 s->sm.mnt_ns_id = ns->ns.ns_id; in statmount_mnt_ns_id() 5714 static int do_statmount(struct kstatmount *s, u64 mnt_id, u64 mnt_ns_id, in do_statmount() argument 5735 if (mnt_ns_id && mnt_ns_empty(ns)) in do_statmount() 5901 if (kreq->mnt_id || kreq->mnt_ns_id) in copy_mnt_id_req() 5904 if (kreq->mnt_ns_fd != 0 && kreq->mnt_ns_id) in copy_mnt_id_req() 5922 if (kreq->mnt_ns_id) { in grab_requested_mnt_ns() 5923 mnt_ns = lookup_mnt_ns(kreq->mnt_ns_id); in grab_requested_mnt_ns() 5979 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/fs/autofs/ |
| 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()
|