Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/tools/testing/selftests/memfd/
A Dmemfd_test.c75 int r, fd; in mfd_assert_new() local
153 int fd; in mfd_assert_reopen_fd() local
840 int fd; in test_create() local
889 int fd; in test_basic() local
941 int fd; in test_seal_write() local
1003 int fd; in test_seal_write_map_read_shared() local
1031 int fd; in test_seal_shrink() local
1057 int fd; in test_seal_grow() local
1083 int fd; in test_seal_resize() local
1110 int fd; in test_exec_seal() local
[all …]
A Dfuse_test.c46 int r, fd; in mfd_assert_new() local
64 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
77 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals()
89 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals()
103 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals()
124 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared()
142 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private()
231 int fd, mfd, r; in main() local
/tools/testing/selftests/mm/
A Dgup_longterm.c38 static __fsword_t get_fs_type(int fd) in get_fs_type()
304 int fd; in run_with_memfd() local
322 int fd; in run_with_tmpfile() local
346 int fd; in run_with_local_tmpfile() local
370 int fd; in run_with_memfd_hugetlb() local
393 static void test_shared_rw_pin(int fd, size_t size) in test_shared_rw_pin()
403 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin()
413 static void test_private_rw_pin(int fd, size_t size) in test_private_rw_pin()
423 static void test_private_ro_pin(int fd, size_t size) in test_private_ro_pin()
434 static void test_shared_iouring(int fd, size_t size) in test_shared_iouring()
[all …]
A Dmemfd_secret.c47 static void test_file_apis(int fd) in test_file_apis()
60 static void test_mlock_limit(int fd) in test_mlock_limit()
87 static void test_vmsplice(int fd, const char *desc) in test_vmsplice()
126 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read()
150 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace()
201 static void test_remote_access(int fd, const char *name, in test_remote_access()
202 void (*func)(int fd, int pipefd[2])) in test_remote_access()
240 static void test_process_vm_read(int fd) in test_process_vm_read()
245 static void test_ptrace(int fd) in test_ptrace()
304 int fd; in main() local
/tools/testing/vsock/
A Dvsock_test.c51 int fd; in test_stream_connection_reset() local
87 int fd; in test_stream_bind_only_client() local
118 int fd; in test_stream_bind_only_server() local
133 int fd; in test_stream_client_close_client() local
147 int fd; in test_stream_client_close_server() local
168 int fd; in test_stream_server_close_client() local
189 int fd; in test_stream_server_close_server() local
260 int fd; in test_msg_peek_client() local
289 int fd; in test_msg_peek_server() local
358 int fd; in test_seqpacket_msg_bounds_client() local
[all …]
A Dutil.c69 void vsock_wait_remote_close(int fd) in vsock_wait_remote_close()
135 bool vsock_wait_sent(int fd) in vsock_wait_sent()
150 int fd, saved_errno; in vsock_bind_try() local
171 int fd; in vsock_bind() local
219 int fd; in vsock_connect() local
253 int fd; in vsock_listen() local
276 int fd, client_fd, old_errno; in vsock_accept() local
441 void send_byte(int fd, int expected_ret, int flags) in send_byte()
455 void recv_byte(int fd, int expected_ret, int flags) in recv_byte()
855 void enable_so_zerocopy_check(int fd) in enable_so_zerocopy_check()
[all …]
/tools/testing/selftests/sync/
A Dsync.c58 int sync_wait(int fd, int timeout) in sync_wait()
84 static struct sync_file_info *sync_file_info(int fd) in sync_file_info()
131 int sync_fence_size(int fd) in sync_fence_size()
146 int sync_fence_count_with_status(int fd, int status) in sync_fence_count_with_status()
171 int sw_sync_timeline_inc(int fd, unsigned int count) in sw_sync_timeline_inc()
178 int sw_sync_timeline_is_valid(int fd) in sw_sync_timeline_is_valid()
189 void sw_sync_timeline_destroy(int fd) in sw_sync_timeline_destroy()
195 int sw_sync_fence_create(int fd, const char *name, unsigned int value) in sw_sync_fence_create()
211 int sw_sync_fence_is_valid(int fd) in sw_sync_fence_is_valid()
217 void sw_sync_fence_destroy(int fd) in sw_sync_fence_destroy()
/tools/testing/selftests/filesystems/eventfd/
A Deventfd_test.c47 int fd, flags; in TEST() local
61 int fd, flags; in TEST() local
75 int fd, flags; in TEST() local
90 int fd, flags; in TEST() local
115 static int verify_fdinfo(int fd, struct error *err, const char *prefix, in verify_fdinfo()
169 int fd, ret; in TEST() local
196 int fd; in TEST() local
224 int fd; in TEST() local
252 int fd; in TEST() local
286 int fd; in TEST() local
/tools/testing/selftests/bpf/prog_tests/
A Dsocket_helpers.h29 #define take_fd(fd) __get_and_null(fd, -EBADF) argument
48 #define xaccept_nonblock(fd, addr, len) \ argument
57 #define xbind(fd, addr, len) \ argument
65 #define xclose(fd) \ argument
73 #define xconnect(fd, addr, len) \ argument
81 #define xgetsockname(fd, addr, len) \ argument
89 #define xgetsockopt(fd, level, name, val, len) \ argument
138 static inline void close_fd(int *fd) in close_fd()
266 static inline int poll_connect(int fd, unsigned int timeout_sec) in poll_connect()
292 static inline int poll_read(int fd, unsigned int timeout_sec) in poll_read()
[all …]
/tools/testing/selftests/kvm/
A Dguest_memfd_test.c23 static void test_file_read_write(int fd) in test_file_read_write()
37 static void test_mmap(int fd, size_t page_size) in test_mmap()
45 static void test_file_size(int fd, size_t page_size, size_t total_size) in test_file_size()
56 static void test_fallocate(int fd, size_t page_size, size_t total_size) in test_fallocate()
93 static void test_invalid_punch_hole(int fd, size_t page_size, size_t total_size) in test_invalid_punch_hole()
128 int fd; in test_create_guest_memfd_invalid() local
177 int fd; in main() local
/tools/power/acpi/tools/acpidbg/
A Dacpidbg.c97 static int acpi_aml_set_fl(int fd, int flags) in acpi_aml_set_fl()
115 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd()
123 static int acpi_aml_read(int fd, struct circ_buf *crc) in acpi_aml_read()
159 static int acpi_aml_read_batch_log(int fd, struct circ_buf *crc) in acpi_aml_read_batch_log()
223 static int acpi_aml_write(int fd, struct circ_buf *crc) in acpi_aml_write()
238 static int acpi_aml_write_batch_log(int fd, struct circ_buf *crc) in acpi_aml_write_batch_log()
255 static int acpi_aml_write_batch_cmd(int fd, struct circ_buf *crc) in acpi_aml_write_batch_cmd()
265 static void acpi_aml_loop(int fd) in acpi_aml_loop()
336 static bool acpi_aml_readable(int fd) in acpi_aml_readable()
360 static void acpi_aml_flush(int fd) in acpi_aml_flush()
[all …]
/tools/testing/selftests/exec/
A Dexecveat.c35 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_()
46 #define check_execveat_fail(fd, path, flags, errno) \ argument
48 static int _check_execveat_fail(int fd, const char *path, int flags, in _check_execveat_fail()
76 static int check_execveat_invoked_rc(int fd, const char *path, int flags, in check_execveat_invoked_rc()
132 static int check_execveat(int fd, const char *path, int flags) in check_execveat()
148 int fd = open(filename, flags); in open_or_die() local
174 int fd; in check_execveat_pathmax() local
242 static int check_execveat_comm(int fd, char *argv0, char *expected) in check_execveat_comm()
278 int fd = open_or_die("execveat", O_RDONLY); in run_tests() local
430 int fd; in prerequisites() local
[all …]
/tools/testing/selftests/net/
A Dmsg_zerocopy.c144 static int do_poll(int fd, int events) in do_poll()
160 static int do_accept(int fd) in do_accept()
328 int fd; in do_setup_tx() local
363 static bool do_recvmsg_completion(int fd) in do_recvmsg_completion()
396 static bool do_recv_completion(int fd, int domain) in do_recv_completion()
466 static void do_recv_completions(int fd, int domain) in do_recv_completions()
499 int fd; in do_tx() local
582 int fd; in do_setup_rx() local
614 static void do_flush_tcp(int fd) in do_flush_tcp()
632 static void do_flush_datagram(int fd, int type) in do_flush_datagram()
[all …]
A Dgro.c109 static void setup_sock_filter(int fd) in setup_sock_filter()
358 static void send_data_pkts(int fd, struct sockaddr_ll *daddr, in send_data_pkts()
391 static void send_ack(int fd, struct sockaddr_ll *daddr) in send_ack()
529 static void send_changed_ts(int fd, struct sockaddr_ll *daddr) in send_changed_ts()
557 static void send_diff_opt(int fd, struct sockaddr_ll *daddr) in send_diff_opt()
746 static void send_ip_options(int fd, struct sockaddr_ll *daddr) in send_ip_options()
765 static void send_fragment4(int fd, struct sockaddr_ll *daddr) in send_fragment4()
850 static void send_fragment6(int fd, struct sockaddr_ll *daddr) in send_fragment6()
883 static void bind_packetsocket(int fd) in bind_packetsocket()
897 static void set_timeout(int fd) in set_timeout()
[all …]
A Dreuseport_bpf.c92 static void attach_ebpf(int fd, uint16_t mod) in attach_ebpf()
131 static void attach_cbpf(int fd, uint16_t mod) in attach_cbpf()
150 static void build_recv_group(const struct test_params p, int fd[], uint16_t mod, in build_recv_group()
192 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() local
211 static void test_recv_order(const struct test_params p, int fd[], int mod) in test_recv_order()
273 int i, fd[p.recv_socks]; in test_reuseport_ebpf() local
290 int i, fd[p.recv_socks]; in test_reuseport_cbpf() local
349 int fd, bpf_fd; in test_filter_no_reuseport() local
413 int fd = open("/proc/sys/net/ipv4/tcp_fastopen", 0); in enable_fastopen() local
/tools/lib/bpf/
A Dbpf.c81 int fd; in sys_bpf_fd() local
89 int fd; in sys_bpf_prog_load() local
177 int fd; in bpf_map_create() local
616 int fd; in bpf_obj_get_opts() local
967 int fd; in bpf_iter_create() local
1100 int fd; in bpf_prog_get_fd_by_id_opts() local
1123 int fd; in bpf_map_get_fd_by_id_opts() local
1146 int fd; in bpf_btf_get_fd_by_id_opts() local
1170 int fd; in bpf_link_get_fd_by_id_opts() local
1229 int fd; in bpf_raw_tracepoint_open_opts() local
[all …]
/tools/testing/selftests/wireguard/qemu/
A Dinit.c61 int bits = 256, fd; in seed_rng() local
112 int fd; in enable_logging() local
164 int status, fd; in launch_tests() local
219 int fd = open("/dev/console", O_RDWR); in ensure_console() local
236 int fd; in clear_leaks() local
248 int fd; in check_leaks() local
/tools/testing/selftests/bpf/
A Dtest_maps.c36 int fd; in test_hashmap() local
131 int fd, i, j; in test_hashmap_sizes() local
154 int fd, i; in test_hashmap_percpu() local
266 int i, fd, ret; in helper_fill_hashmap() local
478 int key, fd, i; in test_arraymap_percpu_many_keys() local
509 int fd; in test_devmap() local
523 int fd; in test_devmap_hash() local
539 int fd, i; in test_queuemap() local
595 int fd, i; in test_stackmap() local
1312 int fd, i, value; in test_map_large() local
[all …]
/tools/testing/selftests/proc/
A Dfd-003-kthread.c44 int dir_fd, fd; in kernel_thread_fd() local
96 static void test_readdir(int fd) in test_readdir()
122 static void test_lookup_fail(int fd, const char *pathname) in test_lookup_fail()
131 static void test_lookup(int fd) in test_lookup()
158 int fd; in main() local
/tools/testing/selftests/drivers/ntsync/
A Dntsync.c146 int fd, ret, sem; in TEST() local
230 int fd, ret, mutex; in TEST() local
383 int fd, event, ret; in TEST() local
448 int fd, event, ret; in TEST() local
620 int objs[2], fd, ret; in TEST() local
707 int fd; member
712 int fd; member
754 int objs[2], fd, ret; in TEST() local
947 int objs[4], fd, ret; in TEST() local
1070 int objs[2], event, fd, ret; in TEST() local
[all …]
/tools/testing/selftests/sparc64/drivers/
A Dadi-test.c204 static int pread_adi(int fd, unsigned char *buf, in pread_adi()
293 static off_t seek_adi(int fd, off_t offset, int whence) in seek_adi()
313 static int test0_prpw_aligned_1byte(int fd) in test0_prpw_aligned_1byte()
347 static int test1_prpw_aligned_4096bytes(int fd) in test1_prpw_aligned_4096bytes()
387 static int test2_prpw_aligned_10327bytes(int fd) in test2_prpw_aligned_10327bytes()
427 static int test3_prpw_unaligned_12541bytes(int fd) in test3_prpw_unaligned_12541bytes()
466 static int test4_lseek(int fd) in test4_lseek()
515 static int test5_rw_aligned_1byte(int fd) in test5_rw_aligned_1byte()
560 static int test6_rw_aligned_9434bytes(int fd) in test6_rw_aligned_9434bytes()
612 static int test7_rw_aligned_14963bytes(int fd) in test7_rw_aligned_14963bytes()
[all …]
/tools/include/nolibc/sys/
A Dtimerfd.h33 int sys_timerfd_gettime(int fd, struct itimerspec *curr_value) in sys_timerfd_gettime()
51 int timerfd_gettime(int fd, struct itimerspec *curr_value) in timerfd_gettime()
58 int sys_timerfd_settime(int fd, int flags, in sys_timerfd_settime()
81 int timerfd_settime(int fd, int flags, in timerfd_settime()
/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c22 static int check_vgem(int fd) in check_vgem()
42 int i, fd; in open_vgem() local
92 int ret, fd; in dmabuf_heap_open() local
106 static int dmabuf_heap_alloc_fdflags(int fd, size_t len, unsigned int fd_flags, in dmabuf_heap_alloc_fdflags()
127 static int dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc()
134 static int dmabuf_sync(int fd, int start_stop) in dmabuf_sync()
285 static int dmabuf_heap_alloc_older(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_older()
292 __u32 fd; in dmabuf_heap_alloc_older() member
313 static int dmabuf_heap_alloc_newer(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_newer()
320 __u32 fd; in dmabuf_heap_alloc_newer() member
/tools/lib/perf/
A Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion()
36 ssize_t readn(int fd, void *buf, size_t n) in readn()
41 ssize_t preadn(int fd, void *buf, size_t n, off_t offs) in preadn()
64 ssize_t writen(int fd, const void *buf, size_t n) in writen()
/tools/testing/selftests/user_events/
A Ddyn_test.c26 int fd = open(abi_file, O_RDWR); in event_delete() local
44 int fd = open(enable_file, O_RDONLY); in wait_for_delete() local
56 static int reg_event(int fd, int *check, int bit, const char *value) in reg_event()
72 static int unreg_event(int fd, int *check, int bit) in unreg_event()
85 int fd = open(dyn_file, O_RDWR | O_APPEND); in parse_dyn() local
109 int fd = open(abi_file, O_RDWR); in parse_abi() local
149 int fd = open(abi_file, O_RDWR); in check_match() local

Completed in 55 milliseconds

12345678910>>...26