Searched refs:mnt_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 117 int mnt_fd, err; in materialize_bpffs_fd() local 139 mnt_fd = sys_fsmount(fs_fd, 0, 0); in materialize_bpffs_fd() 143 return mnt_fd; in materialize_bpffs_fd() 287 int mnt_fd = -1, fs_fd = -1, err = 0, bpffs_fd = -1, token_fd = -1; in child() local 340 err = recvfd(sock_fd, &mnt_fd); in child() 345 fs_fd = sys_fspick(mnt_fd, "", FSPICK_EMPTY_PATH); in child() 374 bpffs_fd = openat(mnt_fd, ".", 0, O_RDWR); in child() 399 zclose(mnt_fd); in child() 431 int fs_fd = -1, mnt_fd = -1, token_fd = -1, err; in parent() local 437 mnt_fd = materialize_bpffs_fd(fs_fd, bpffs_opts); in parent() [all …]
|
H A D | bpf_obj_pinning.c | 40 int fs_fd = -1, mnt_fd = -1; in bpf_obj_pinning_detached() local 60 mnt_fd = sys_fsmount(fs_fd, 0, 0); in bpf_obj_pinning_detached() 61 if (!ASSERT_GE(mnt_fd, 0, "mnt_fd")) in bpf_obj_pinning_detached() 81 pin_opts.path_fd = mnt_fd; in bpf_obj_pinning_detached() 88 get_opts.path_fd = mnt_fd; in bpf_obj_pinning_detached() 112 if (mnt_fd >= 0) in bpf_obj_pinning_detached() 113 ASSERT_OK(close(mnt_fd), "close_mnt_fd"); in bpf_obj_pinning_detached()
|