/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 40 static inline int sys_fsconfig(int fs_fd, unsigned cmd, const char *key, const void *val, int aux) in sys_fsconfig() argument 42 return syscall(__NR_fsconfig, fs_fd, cmd, key, val, aux); in sys_fsconfig() 45 static inline int sys_fsmount(int fs_fd, unsigned flags, unsigned ms_flags) in sys_fsmount() argument 47 return syscall(__NR_fsmount, fs_fd, flags, ms_flags); in sys_fsmount() 70 static int set_delegate_mask(int fs_fd, const char *key, __u64 mask, const char *mask_str) in set_delegate_mask() argument 84 err = sys_fsconfig(fs_fd, FSCONFIG_SET_STRING, key, in set_delegate_mask() 106 int fs_fd; in create_bpffs_fd() local 109 fs_fd = sys_fsopen("bpf", 0); in create_bpffs_fd() 110 ASSERT_GE(fs_fd, 0, "fs_fd"); in create_bpffs_fd() 112 return fs_fd; in create_bpffs_fd() [all …]
|
H A D | bpf_obj_pinning.c | 18 static inline int sys_fsconfig(int fs_fd, unsigned cmd, const char *key, const void *val, int aux) in sys_fsconfig() argument 20 return syscall(__NR_fsconfig, fs_fd, cmd, key, val, aux); in sys_fsconfig() 23 static inline int sys_fsmount(int fs_fd, unsigned flags, unsigned ms_flags) in sys_fsmount() argument 25 return syscall(__NR_fsmount, fs_fd, flags, ms_flags); in sys_fsmount() 40 int fs_fd = -1, mnt_fd = -1; in bpf_obj_pinning_detached() local 50 fs_fd = sys_fsopen("bpf", 0); in bpf_obj_pinning_detached() 51 if (!ASSERT_GE(fs_fd, 0, "fs_fd")) in bpf_obj_pinning_detached() 55 err = sys_fsconfig(fs_fd, FSCONFIG_CMD_CREATE, NULL, NULL, 0); in bpf_obj_pinning_detached() 60 mnt_fd = sys_fsmount(fs_fd, 0, 0); in bpf_obj_pinning_detached() 110 if (fs_fd >= 0) in bpf_obj_pinning_detached() [all …]
|
/linux/Documentation/filesystems/ |
H A D | overlayfs.rst | 360 fsconfig(fs_fd, FSCONFIG_SET_STRING, "lowerdir+", "/a:lower::dir", 0); 436 fsconfig(fs_fd, FSCONFIG_SET_STRING, "lowerdir+", "/l1", 0); 437 fsconfig(fs_fd, FSCONFIG_SET_STRING, "lowerdir+", "/l2", 0); 438 fsconfig(fs_fd, FSCONFIG_SET_STRING, "lowerdir+", "/l3", 0); 439 fsconfig(fs_fd, FSCONFIG_SET_STRING, "datadir+", "/do1", 0); 440 fsconfig(fs_fd, FSCONFIG_SET_STRING, "datadir+", "/do2", 0); 451 fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower1); 452 fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower2); 453 fsconfig(fs_fd, FSCONFIG_SET_FD, "lowerdir+", NULL, fd_lower3); 454 fsconfig(fs_fd, FSCONFIG_SET_FD, "datadir+", NULL, fd_data1); [all …]
|
/linux/include/linux/ |
H A D | syscalls.h | 961 asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, 963 asmlinkage long sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags);
|