Home
last modified time | relevance | path

Searched refs:fsfd (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/samples/vfs/
Dtest-fsmount.c77 static inline int fsmount(int fsfd, unsigned int flags, unsigned int ms_flags) in fsmount() argument
79 return syscall(__NR_fsmount, fsfd, flags, ms_flags); in fsmount()
82 static inline int fsconfig(int fsfd, unsigned int cmd, in fsconfig() argument
85 return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); in fsconfig()
105 int fsfd, mfd; in main() local
108 fsfd = fsopen("afs", 0); in main()
109 if (fsfd == -1) { in main()
114 E_fsconfig(fsfd, FSCONFIG_SET_STRING, "source", "#grand.central.org:root.cell.", 0); in main()
115 E_fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0); in main()
117 mfd = fsmount(fsfd, 0, MOUNT_ATTR_RDONLY); in main()
[all …]
/linux-6.1.9/tools/testing/selftests/proc/
Dproc-fsconfig-hidepid.c35 int fsfd, ret; in main() local
38 assert((fsfd = fsopen("proc", 0)) != -1); in main()
40 ret = fsconfig(fsfd, FSCONFIG_SET_BINARY, "hidepid", &hidepid, 0); in main()
44 assert(!fsconfig(fsfd, FSCONFIG_SET_STRING, "hidepid", "2", 0)); in main()
45 assert(!fsconfig(fsfd, FSCONFIG_SET_STRING, "hidepid", "invisible", 0)); in main()
47 assert(!close(fsfd)); in main()