Home
last modified time | relevance | path

Searched refs:__fd (Results 1 – 4 of 4) sorted by relevance

/linux/tools/include/nolibc/sys/
H A Dselect.h26 int __fd = (fd); \
27 if (__fd >= 0) \
28 __set->fds[__fd / FD_SETIDXMASK] &= \
29 ~(1U << (__fd & FD_SETBITMASK)); \
34 int __fd = (fd); \
35 if (__fd >= 0) \
36 __set->fds[__fd / FD_SETIDXMASK] |= \
37 1 << (__fd & FD_SETBITMASK); \
42 int __fd = (fd); \
44 if (__fd >= 0) \
[all …]
/linux/include/linux/
H A Dfile.h144 s32 __fd; /* do not access directly */ member
156 (_Generic((_fdf), struct fd_prepare: (_fdf).__fd))
164 if (unlikely(fdf->__fd >= 0)) in class_fd_prepare_destructor()
165 put_unused_fd(fdf->__fd); in class_fd_prepare_destructor()
175 if (unlikely(fdf->__fd < 0)) in class_fd_prepare_lock_err()
176 return fdf->__fd; in class_fd_prepare_lock_err()
198 .__fd = get_unused_fd_flags((_fd_flags)), \
200 if (likely(fdf.__fd >= 0)) \
228 VFS_WARN_ON_ONCE(fdp->__fd < 0); \
230 fd_install(fdp->__fd, fdp->__file); \
[all …]
/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_device_test.c45 int __fd; \
48 ASSERT_GT((__fd = open(__sysfs_path, O_RDONLY)), 0); \
49 ASSERT_GT(read(__fd, __buf, ARRAY_SIZE(__buf)), 0); \
50 ASSERT_EQ(0, close(__fd)); \
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_bpf.c11 #define TEST_DECLARE_OPTS(__fd) \ argument
14 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_f, .prog_fd = __fd); \
16 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hf, .handle = 1, .prog_fd = __fd); \
17 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_pf, .priority = 1, .prog_fd = __fd); \
18 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hpf, .handle = 1, .priority = 1, .prog_fd = __fd); \
22 DECLARE_LIBBPF_OPTS(bpf_tc_opts, opts_hpfi, .handle = 1, .priority = 1, .prog_fd = __fd, \