Searched refs:fsfd (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/samples/vfs/ |
H A D | test-fsmount.c | 77 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() 115 E_fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0); in main() 117 mfd = fsmount(fsfd, 0, MOUNT_ATTR_RDONLY); in main() 119 mount_error(fsfd, "fsmount"); in main() [all …]
|
/openbmc/linux/tools/testing/selftests/proc/ |
H A D | proc-fsconfig-hidepid.c | 35 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()
|