Home
last modified time | relevance | path

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

12345678910>>...15

/tools/testing/selftests/memfd/
Dmemfd_test.c39 int r, fd; in mfd_assert_new() local
59 int r, fd; in mfd_assert_reopen_fd() local
86 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
99 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals()
110 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals()
123 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals()
142 static void mfd_assert_size(int fd, size_t size) in mfd_assert_size()
158 static int mfd_assert_dup(int fd) in mfd_assert_dup()
171 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared()
189 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private()
[all …]
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/sync/
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/vsock/
Dvsock_test.c35 int fd; in test_stream_connection_reset() local
71 int fd; in test_stream_bind_only_client() local
112 int fd; in test_stream_bind_only_server() local
132 int fd; in test_stream_client_close_client() local
146 int fd; in test_stream_client_close_server() local
167 int fd; in test_stream_server_close_client() local
188 int fd; in test_stream_server_close_server() local
255 int fd; in test_stream_msg_peek_client() local
269 int fd; in test_stream_msg_peek_server() local
/tools/testing/selftests/powerpc/
Dutils.c32 int rc, fd; in read_auxv() local
145 int rc = -1, fd; in read_sysfs_file() local
164 int rc = -1, fd; in read_debugfs_file() local
186 int rc = -1, fd; in write_debugfs_file() local
232 int fd; in perf_event_open_counter() local
245 int perf_event_enable(int fd) in perf_event_enable()
255 int perf_event_disable(int fd) in perf_event_disable()
265 int perf_event_reset(int fd) in perf_event_reset()
/tools/power/acpi/tools/acpidbg/
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/net/
Dmsg_zerocopy.c135 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt()
141 static int do_poll(int fd, int events) in do_poll()
157 static int do_accept(int fd) in do_accept()
183 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg()
226 static void do_sendmsg_corked(int fd, struct msghdr *msg) in do_sendmsg_corked()
324 int fd; in do_setup_tx() local
359 static bool do_recvmsg_completion(int fd) in do_recvmsg_completion()
392 static bool do_recv_completion(int fd, int domain) in do_recv_completion()
460 static void do_recv_completions(int fd, int domain) in do_recv_completions()
466 static void do_recv_remaining_completions(int fd, int domain) in do_recv_remaining_completions()
[all …]
Dipv6_flowlabel_mgr.c48 static int flowlabel_get(int fd, uint32_t label, uint8_t share, uint16_t flags) in flowlabel_get()
64 static int flowlabel_put(int fd, uint32_t label) in flowlabel_put()
74 static void run_tests(int fd) in run_tests()
185 int fd; in main() local
Dreuseaddr_ports_exhausted.c58 int fd, ret; in bind_port() local
84 int i, j, fd[2]; in TEST() local
104 int i, j, fd[2]; in TEST() local
129 int i, j, ret, fd[2]; in TEST() local
Dreuseport_bpf.c94 static void attach_ebpf(int fd, uint16_t mod) in attach_ebpf()
133 static void attach_cbpf(int fd, uint16_t mod) in attach_cbpf()
152 static void build_recv_group(const struct test_params p, int fd[], uint16_t mod, in build_recv_group()
194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() local
213 static void test_recv_order(const struct test_params p, int fd[], int mod) in test_recv_order()
275 int i, fd[p.recv_socks]; in test_reuseport_ebpf() local
292 int i, fd[p.recv_socks]; in test_reuseport_cbpf() local
351 int fd, bpf_fd; in test_filter_no_reuseport() local
415 int fd = open("/proc/sys/net/ipv4/tcp_fastopen", 0); in enable_fastopen() local
/tools/testing/selftests/bpf/
Dtest_maps.c40 int fd; in test_hashmap() local
129 int fd, i, j; in test_hashmap_sizes() local
153 int fd, i; in test_hashmap_percpu() local
254 int i, fd, ret; in helper_fill_hashmap() local
276 int fd, i, max_entries = 1000; in test_hashmap_walk() local
347 int key, next_key, fd; in test_arraymap() local
404 int key, next_key, fd, i; in test_arraymap_percpu() local
467 int key, fd, i; in test_arraymap_percpu_many_keys() local
498 int fd; in test_devmap() local
513 int fd; in test_devmap_hash() local
[all …]
Dnetwork_helpers.c43 static int settimeo(int fd, int timeout_ms) in settimeo()
67 #define save_errno_close(fd) ({ int __save = errno; close(fd); errno = __save; }) argument
74 int fd; in start_server() local
113 int fd, ret; in fastopen_connect() local
144 static int connect_fd_to_addr(int fd, in connect_fd_to_addr()
161 int fd, type; in connect_to_fd() local
/tools/testing/selftests/proc/
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/dmabuf-heaps/
Ddmabuf-heap.c22 static int check_vgem(int fd) in check_vgem()
40 int i, fd; in open_vgem() local
90 int ret, fd; in dmabuf_heap_open() local
105 static int dmabuf_heap_alloc_fdflags(int fd, size_t len, unsigned int fd_flags, in dmabuf_heap_alloc_fdflags()
126 static int dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc()
133 static void dmabuf_sync(int fd, int start_stop) in dmabuf_sync()
222 static int dmabuf_heap_alloc_older(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_older()
229 __u32 fd; in dmabuf_heap_alloc_older() member
250 static int dmabuf_heap_alloc_newer(int fd, size_t len, unsigned int flags, in dmabuf_heap_alloc_newer()
257 __u32 fd; in dmabuf_heap_alloc_newer() member
/tools/perf/tests/
Dwp.c14 #define WP_TEST_ASSERT_VAL(fd, text, val) \ argument
24 static int wp_read(int fd, long long *count, int size) in wp_read()
53 int fd; in __event() local
67 int fd; in wp_ro_test() local
86 int fd; in wp_wo_test() local
105 int fd; in wp_rw_test() local
125 int fd, ret; in wp_modify_test() local
Dbp_account.c31 int fd; in __event() local
71 int i, fd[wp_cnt], fd_wp, ret; in bp_accounting() local
104 int fd[100], cnt = 0, i; in detect_cnt() local
127 int fd, ret = 1; in detect_ioctl() local
141 int i, fd[wp_cnt + bp_cnt], ret; in detect_share() local
/tools/testing/selftests/exec/
Dexecveat.c30 static int execveat_(int fd, const char *path, char **argv, char **envp, in execveat_()
41 #define check_execveat_fail(fd, path, flags, errno) \ argument
43 static int _check_execveat_fail(int fd, const char *path, int flags, in _check_execveat_fail()
67 static int check_execveat_invoked_rc(int fd, const char *path, int flags, in check_execveat_invoked_rc()
114 static int check_execveat(int fd, const char *path, int flags) in check_execveat()
130 int fd = open(filename, flags); in open_or_die() local
158 int fd; in check_execveat_pathmax() local
237 int fd = open_or_die("execveat", O_RDONLY); in run_tests() local
381 int fd; in prerequisites() local
/tools/gpio/
Dgpio-utils.c65 int fd; in gpiotools_request_linehandle() local
132 int fd; in gpiotools_request_line() local
179 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_set_values()
203 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_get_values()
226 int gpiotools_release_linehandle(const int fd) in gpiotools_release_linehandle()
247 int gpiotools_release_line(const int fd) in gpiotools_release_line()
297 int fd, i; in gpiotools_gets() local
/tools/testing/selftests/wireguard/qemu/
Dinit.c59 int fd; in seed_rng() local
111 int fd; in enable_logging() local
169 int status, fd; in launch_tests() local
224 int fd = open("/dev/console", O_RDWR); in ensure_console() local
241 int fd; in clear_leaks() local
253 int fd; in check_leaks() local
/tools/spi/
Dspidev_fdx.c18 static void do_read(int fd, int len) in do_read()
49 static void do_msg(int fd, int len) in do_msg()
80 static void dumpstat(const char *name, int fd) in dumpstat()
111 int fd; in main() local
/tools/testing/selftests/sparc64/drivers/
Dadi-test.c184 static int read_adi(int fd, unsigned char *buf, int buf_sz) in read_adi()
208 static int pread_adi(int fd, unsigned char *buf, in pread_adi()
240 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) in write_adi()
263 static int pwrite_adi(int fd, const unsigned char * const buf, in pwrite_adi()
297 static off_t seek_adi(int fd, off_t offset, int whence) in seek_adi()
317 static int test0_prpw_aligned_1byte(int fd) in test0_prpw_aligned_1byte()
351 static int test1_prpw_aligned_4096bytes(int fd) in test1_prpw_aligned_4096bytes()
391 static int test2_prpw_aligned_10327bytes(int fd) in test2_prpw_aligned_10327bytes()
431 static int test3_prpw_unaligned_12541bytes(int fd) in test3_prpw_unaligned_12541bytes()
470 static int test4_lseek(int fd) in test4_lseek()
[all …]
/tools/testing/selftests/core/
Dclose_range_test.c26 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, in sys_close_range()
42 int fd; in TEST() local
106 int fd; in TEST() local
195 int fd; in TEST() local
/tools/lib/perf/
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()
44 ssize_t writen(int fd, const void *buf, size_t n) in writen()
/tools/power/acpi/tools/ec/
Dec_access.c125 void dump_ec(int fd) in dump_ec()
175 void read_ec_val(int fd, int byte_offset) in read_ec_val()
192 void write_ec_val(int fd, int byte_offset, uint8_t value) in write_ec_val()
209 int fd; in main() local
/tools/testing/selftests/efivarfs/
Dopen-unlink.c16 int fd; in set_immutable() local
47 int fd; in get_immutable() local
72 int fd, rc; in main() local

12345678910>>...15