Home
last modified time | relevance | path

Searched refs:MNT_DETACH (Results 1 – 11 of 11) sorted by relevance

/linux-6.6.21/tools/testing/selftests/move_mount_set_group/
Dmove_mount_set_group_test.c223 umount2("/tmp", MNT_DETACH); in move_mount_set_group_supported()
244 umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
264 umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c387 (void)umount2("/mnt", MNT_DETACH); in FIXTURE_SETUP()
388 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
436 (void)umount2("/mnt/A", MNT_DETACH); in FIXTURE_TEARDOWN()
437 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
1008 (void)umount2("/mnt", MNT_DETACH); in FIXTURE_SETUP()
1009 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_SETUP()
1062 (void)umount2("/mnt/A", MNT_DETACH); in FIXTURE_TEARDOWN()
1063 (void)umount2("/tmp", MNT_DETACH); in FIXTURE_TEARDOWN()
/linux-6.6.21/init/
Ddo_mounts_initrd.c133 init_umount("/old", MNT_DETACH); in handle_initrd()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dconnect_ping.c177 umount2("/sys", MNT_DETACH); in test_connect_ping()
/linux-6.6.21/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c174 ret = umount2(binderfs_mntpt, MNT_DETACH); in __do_binderfs_test()
447 ret = umount2(binderfs_mntpt, MNT_DETACH); in TEST()
/linux-6.6.21/samples/seccomp/
Duser-trap.c348 if (umount2("/tmp/foo", MNT_DETACH) < 0 && errno != EINVAL) { in main()
/linux-6.6.21/tools/testing/selftests/pidfd/
Dpidfd_fdinfo_test.c236 (void)umount2("/proc", MNT_DETACH); in child_fdinfo_nspid_test()
Dpidfd_test.c203 (void)umount2("/proc", MNT_DETACH); in test_pidfd_send_signal_recycled_pid_fail()
/linux-6.6.21/Documentation/filesystems/
Dautomount-support.rst85 umount(). This flag is considered incompatible with MNT_FORCE and MNT_DETACH.
/linux-6.6.21/fs/
Dnamespace.c1724 flags & (MNT_FORCE | MNT_DETACH)) in do_umount()
1765 if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { in do_umount()
1784 if (flags & MNT_DETACH) { in do_umount()
1909 if (flags & ~(MNT_FORCE | MNT_DETACH | MNT_EXPIRE | UMOUNT_NOFOLLOW)) in ksys_umount()
/linux-6.6.21/include/linux/
Dfs.h1151 #define MNT_DETACH 0x00000002 /* Just detach from the tree */ macro