| /linux/tools/testing/selftests/memfd/ |
| H A D | memfd_test.c | 49 static ssize_t fd2name(int fd, char *buf, size_t bufsize) in fd2name() 75 int r, fd; in mfd_assert_new() local 95 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_assert_write() local 110 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_fail_write() local 127 int fd = open("/proc/sys/vm/memfd_noexec", O_RDONLY | O_CLOEXEC); in sysctl_assert_equal() local 153 int fd; in mfd_assert_reopen_fd() local 180 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 193 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() 206 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() 219 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() [all …]
|
| H A D | fuse_test.c | 46 int r, fd; in mfd_assert_new() local 64 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals() argument 77 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() argument 89 mfd_assert_add_seals(int fd,__u64 seals) mfd_assert_add_seals() argument 103 mfd_busy_add_seals(int fd,__u64 seals) mfd_busy_add_seals() argument 124 mfd_assert_mmap_shared(int fd) mfd_assert_mmap_shared() argument 142 mfd_assert_mmap_private(int fd) mfd_assert_mmap_private() argument 231 int fd, mfd, r; main() local [all...] |
| /linux/tools/testing/vsock/ |
| H A D | vsock_test.c | 51 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; test_stream_client_close_client() local 147 int fd; test_stream_client_close_server() local 168 int fd; test_stream_server_close_client() local 189 int fd; test_stream_server_close_server() local 260 int fd; test_msg_peek_client() local 289 int fd; test_msg_peek_server() local 358 int fd; test_seqpacket_msg_bounds_client() local 427 int fd; test_seqpacket_msg_bounds_server() local 495 int fd; test_seqpacket_msg_trunc_client() local 512 int fd; test_seqpacket_msg_trunc_server() local 562 int fd; test_seqpacket_timeout_client() local 609 int fd; test_seqpacket_timeout_server() local 627 int fd; test_seqpacket_bigmsg_client() local 668 int fd; test_seqpacket_bigmsg_server() local 686 int fd; test_seqpacket_invalid_rec_buffer_client() local 721 int fd; test_seqpacket_invalid_rec_buffer_server() local 804 int fd; test_stream_poll_rcvlowat_server() local 836 int fd; test_stream_poll_rcvlowat_client() local 899 int fd; test_inv_buf_client() local 934 int fd; test_inv_buf_server() local 980 int fd; test_stream_virtio_skb_merge_client() local 1009 int fd; test_stream_virtio_skb_merge_server() local 1065 test_stream_check_sigpipe(int fd) test_stream_check_sigpipe() argument 1126 int fd; test_stream_shutwr_client() local 1154 int fd; test_stream_shutwr_server() local 1169 int fd; test_stream_shutrd_client() local 1194 int fd; test_stream_shutrd_server() local 1285 int fd; test_unsent_bytes_client() local 1334 int fd; test_unread_bytes_client() local 1411 int fd; test_stream_rcvlowat_def_cred_upd_client() local 1448 int fd; test_stream_credit_update_test() local 1577 int fd; test_stream_leak_acceptq_client() local 1594 int fd; test_stream_leak_acceptq_server() local 1607 int fd; test_stream_msgzcopy_leak_errq_client() local 1630 int fd; test_stream_msgzcopy_leak_errq_server() local 1719 int fd, res; test_stream_msgzcopy_leak_zcskb_client() local 1778 int fd; test_stream_msgzcopy_leak_zcskb_server() local 1797 int fd, i, c; test_stream_transport_uaf() local 1901 int fd; test_stream_connect_retry_client() local 1927 int fd; test_stream_connect_retry_server() local 2117 int fd; test_stream_linger_client() local 2131 int fd; test_stream_linger_server() local 2150 int fd; test_stream_nolinger_client() local 2178 int fd; test_stream_nolinger_server() local [all...] |
| H A D | util.c | 69 void vsock_wait_remote_close(int fd) in vsock_wait_remote_close() argument 108 bool vsock_ioctl_int(int fd, unsigned long op, int expected) in vsock_ioctl_int() argument 135 bool vsock_wait_sent(int fd) in vsock_wait_sent() argument 150 int fd, saved_errno; vsock_bind_try() local 171 int fd; vsock_bind() local 182 vsock_connect_fd(int fd,unsigned int cid,unsigned int port) vsock_connect_fd() argument 219 int fd; vsock_connect() local 253 int fd; vsock_listen() local 276 int fd, client_fd, old_errno; vsock_accept() local 336 send_buf(int fd,const void * buf,size_t len,int flags,ssize_t expected_ret) send_buf() argument 389 recv_buf(int fd,void * buf,size_t len,int flags,ssize_t expected_ret) recv_buf() argument 441 send_byte(int fd,int expected_ret,int flags) send_byte() argument 455 recv_byte(int fd,int expected_ret,int flags) recv_byte() argument 720 setsockopt_ull_check(int fd,int level,int optname,unsigned long long val,char const * errmsg) setsockopt_ull_check() argument 763 setsockopt_int_check(int fd,int level,int optname,int val,char const * errmsg) setsockopt_int_check() argument 812 setsockopt_timeval_check(int fd,int level,int optname,struct timeval val,char const * errmsg) setsockopt_timeval_check() argument 855 enable_so_zerocopy_check(int fd) enable_so_zerocopy_check() argument 861 enable_so_linger(int fd,int timeout) enable_so_linger() argument [all...] |
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 44 int os_stat_fd(const int fd, struct uml_stat *ubuf) in os_stat_fd() 89 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) in os_ioctl_generic() 101 int os_get_ifname(int fd, char* namebuf) in os_get_ifname() 109 int os_mode_fd(int fd, int mode) in os_mode_fd() 167 int fd, err, f = 0; in os_open_file() local 204 int fd, err; in os_connect_socket() local 229 int os_dup_file(int fd) in os_dup_file() 239 void os_close_file(int fd) in os_close_file() 244 int os_seek_file(int fd, unsigned long long offset) in os_seek_file() 254 int os_read_file(int fd, void *buf, int len) in os_read_file() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | gup_longterm.c | 38 static __fsword_t get_fs_type(int fd) in get_fs_type() 91 static void do_test(int fd, size_t size, enum test_type type, bool shared) in do_test() 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() 398 static void test_shared_rw_fast_pin(int fd, size_t size) in test_shared_rw_fast_pin() 403 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin() 408 static void test_shared_ro_fast_pin(int fd, size_t size) in test_shared_ro_fast_pin() [all …]
|
| H A D | memfd_secret.c | 47 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
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 28 static void test_file_read_write(int fd, size_t total_size) in test_file_read_write() 42 static void test_mmap_cow(int fd, size_t size) in test_mmap_cow() 50 static void test_mmap_supported(int fd, size_t total_size) in test_mmap_supported() 79 static void test_mbind(int fd, size_t total_size) in test_mbind() 122 static void test_numa_allocation(int fd, size_t total_size) in test_numa_allocation() 174 static void test_fault_sigbus(int fd, size_t accessible_size, size_t map_size) in test_fault_sigbus() 191 static void test_fault_overflow(int fd, size_t total_size) in test_fault_overflow() 196 static void test_fault_private(int fd, size_t total_size) in test_fault_private() 201 static void test_mmap_not_supported(int fd, size_t total_size) in test_mmap_not_supported() 212 static void test_file_size(int fd, size_t total_size) in test_file_size() [all …]
|
| /linux/tools/testing/selftests/sync/ |
| H A D | sync.c | 58 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()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | socket_helpers.h | 34 #define take_fd(fd) __get_and_null(fd, -EBADF) argument 53 #define xaccept_nonblock(fd, addr, len) \ argument 62 #define xbind(fd, addr, len) \ argument 70 #define xclose(fd) \ argument 78 #define xconnect(fd, addr, len) \ argument 86 #define xgetsockname(fd, addr, len) \ argument 94 #define xgetsockopt(fd, level, name, val, len) \ argument 102 #define xlisten(fd, backlog) \ argument 110 #define xsetsockopt(fd, level, name, val, len) \ argument 118 #define xsend(fd, buf, len, flags) \ argument [all …]
|
| /linux/fs/ |
| H A D | sync.c | 150 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument 152 CLASS(fd, f)(fd); in SYSCALL_DEFINE1() local 206 static int do_fsync(unsigned int fd, int datasync) in do_fsync() 208 CLASS(fd, f)(fd); in do_fsync() local 216 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument 221 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument 351 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range() 354 CLASS(fd, f)(fd); in ksys_sync_file_range() local 362 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument 369 COMPAT_SYSCALL_DEFINE6(sync_file_range, int, fd, compat_arg_u64_dual(offset), in COMPAT_SYSCALL_DEFINE6() argument [all …]
|
| /linux/tools/testing/selftests/filesystems/eventfd/ |
| H A D | eventfd_test.c | 47 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
|
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 159 static int uhid_write(int fd, const struct uhid_event *ev) in uhid_write() 176 static int create(int fd) in create() 194 static void destroy(int fd) in destroy() 225 static int event(int fd) in event() 278 static int send_event(int fd) in send_event() 301 static int keyboard(int fd) in keyboard() 389 int fd; in main() local
|
| /linux/arch/xtensa/kernel/ |
| H A D | smp.c | 498 struct flush_data *fd = arg; in ipi_flush_tlb_page() local 504 struct flush_data fd = { in flush_tlb_page() local 513 struct flush_data *fd = arg; in ipi_flush_tlb_range() local 520 struct flush_data fd = { in flush_tlb_range() local 530 struct flush_data *fd = arg; in ipi_flush_tlb_kernel_range() local 536 struct flush_data fd = { in flush_tlb_kernel_range() local 557 struct flush_data *fd = arg; in ipi_flush_cache_page() local 564 struct flush_data fd = { in flush_cache_page() local 574 struct flush_data *fd = arg; in ipi_flush_cache_range() local 581 struct flush_data fd = { in flush_cache_range() local [all …]
|
| /linux/arch/um/drivers/ |
| H A D | vector_user.c | 137 int fd = -1; in create_tap_fd() local 167 int fd = -1; in create_raw_fd() local 203 int fd = -1, i; in user_init_tap_fds() local 312 int fd = -1; in user_init_unix_fds() local 390 long fd; in strtofd() local 410 int fd = -1; in user_init_fd_fds() local 560 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass() 572 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers() 584 bool uml_tap_enable_vnet_headers(int fd) in uml_tap_enable_vnet_headers() 604 int fd = -1, gairet; in user_init_socket_fds() local [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | msg_zerocopy.c | 138 static void do_setsockopt(int fd, int level, int optname, int val) in do_setsockopt() 144 static int do_poll(int fd, int events) in do_poll() 160 static int do_accept(int fd) in do_accept() 186 static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) in do_sendmsg() 230 static void do_sendmsg_corked(int fd, struct msghdr *msg) in do_sendmsg_corked() 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() 473 static void do_recv_remaining_completions(int fd, int domain) in do_recv_remaining_completions() [all …]
|
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 28 int fd; in TEST() local 83 int fd; in TEST() local 133 int fd; in TEST() local 183 int fd; in TEST() local 233 int fd; in TEST() local 283 int fd; in TEST() local 333 int fd; in TEST() local 385 int fd; in TEST() local 437 int fd; in TEST() local 566 int fd; in TEST() local [all …]
|
| /linux/include/soc/fsl/ |
| H A D | dpaa2-fd.h | 104 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr() 114 static inline void dpaa2_fd_set_addr(struct dpaa2_fd *fd, dma_addr_t addr) in dpaa2_fd_set_addr() 125 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc() 135 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc() 146 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl() 156 static inline void dpaa2_fd_set_ctrl(struct dpaa2_fd *fd, u32 ctrl) in dpaa2_fd_set_ctrl() 167 static inline dma_addr_t dpaa2_fd_get_flc(const struct dpaa2_fd *fd) in dpaa2_fd_get_flc() 177 static inline void dpaa2_fd_set_flc(struct dpaa2_fd *fd, dma_addr_t flc_addr) in dpaa2_fd_set_flc() 182 static inline bool dpaa2_fd_short_len(const struct dpaa2_fd *fd) in dpaa2_fd_short_len() 194 static inline u32 dpaa2_fd_get_len(const struct dpaa2_fd *fd) in dpaa2_fd_get_len() [all …]
|
| /linux/tools/power/acpi/tools/acpidbg/ |
| H A D | acpidbg.c | 97 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 …]
|
| /linux/tools/testing/selftests/exec/ |
| H A D | execveat.c | 35 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 …]
|
| /linux/arch/xtensa/platforms/iss/include/platform/ |
| H A D | simcall.h | 39 static inline int simc_close(int fd) in simc_close() 44 static inline int simc_ioctl(int fd, int request, void *arg) in simc_ioctl() 54 static inline int simc_read(int fd, void *buf, size_t count) in simc_read() 59 static inline int simc_write(int fd, const void *buf, size_t count) in simc_write() 64 static inline int simc_poll(int fd) in simc_poll() 76 static inline int simc_lseek(int fd, uint32_t off, int whence) in simc_lseek()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_maps.c | 36 int fd; in test_hashmap() local 131 int fd, i, j; test_hashmap_sizes() local 154 int fd, i; test_hashmap_percpu() local 266 int i, fd, ret; helper_fill_hashmap() local 288 int fd, i, max_entries = 10000; test_hashmap_walk() local 359 int key, next_key, fd; test_arraymap() local 415 int key, next_key, fd, i; test_arraymap_percpu() local 478 int key, fd, i; test_arraymap_percpu_many_keys() local 509 int fd; test_devmap() local 523 int fd; test_devmap_hash() local 539 int fd, i; test_queuemap() local 595 int fd, i; test_stackmap() local 660 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; test_sockmap() local 1152 int mim_fd, fd, err; test_map_in_map() local 1312 int fd, i, value; test_map_large() local 1445 int fd = ((int *)data)[0]; test_update_delete() local 1475 int i, fd, key = 0, value = 0, j = 0; test_map_parallel() local 1533 int fd, key = 0, value = 0; test_map_rdonly() local 1562 int fd, key = 0, value = 0; test_map_wronly_hash() local 1590 int fd, value = 0; test_map_wronly_stack_or_queue() local 1726 int fd; test_reuseport_array() local [all...] |
| /linux/drivers/clk/ti/ |
| H A D | fapll.c | 71 struct fapll_data *fd; member 79 static bool ti_fapll_clock_is_bypass(struct fapll_data *fd) in ti_fapll_clock_is_bypass() 89 static void ti_fapll_set_bypass(struct fapll_data *fd) in ti_fapll_set_bypass() 100 static void ti_fapll_clear_bypass(struct fapll_data *fd) in ti_fapll_clear_bypass() 111 static int ti_fapll_wait_lock(struct fapll_data *fd) in ti_fapll_wait_lock() 133 struct fapll_data *fd = to_fapll(hw); in ti_fapll_enable() local 145 struct fapll_data *fd = to_fapll(hw); in ti_fapll_disable() local 154 struct fapll_data *fd = to_fapll(hw); in ti_fapll_is_enabled() local 163 struct fapll_data *fd = to_fapll(hw); in ti_fapll_recalc_rate() local 186 struct fapll_data *fd = to_fapll(hw); in ti_fapll_get_parent() local [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_exp_rcv.c | 50 int hfi1_user_exp_rcv_init(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_init() 103 void hfi1_user_exp_rcv_free(struct hfi1_filedata *fd) in hfi1_user_exp_rcv_free() 132 static void unpin_rcv_pages(struct hfi1_filedata *fd, in unpin_rcv_pages() 159 static int pin_rcv_pages(struct hfi1_filedata *fd, struct tid_user_buf *tidbuf) in pin_rcv_pages() 246 int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_setup() 483 int hfi1_user_exp_rcv_clear(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_clear() 518 int hfi1_user_exp_rcv_invalid(struct hfi1_filedata *fd, in hfi1_user_exp_rcv_invalid() 656 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray() 723 static int set_rcvarray_entry(struct hfi1_filedata *fd, in set_rcvarray_entry() 788 static int unprogram_rcvarray(struct hfi1_filedata *fd, u32 tidinfo) in unprogram_rcvarray() [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | gro.c | 111 static void setup_sock_filter(int fd) in setup_sock_filter() 304 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet() 337 static void send_flags(int fd, struct sockaddr_ll *daddr, int psh, int syn, in send_flags() 372 static void send_data_pkts(int fd, struct sockaddr_ll *daddr, in send_data_pkts() 386 static void send_large(int fd, struct sockaddr_ll *daddr, int remainder) in send_large() 405 static void send_ack(int fd, struct sockaddr_ll *daddr) in send_ack() 516 static void send_changed_checksum(int fd, struct sockaddr_ll *daddr) in send_changed_checksum() 531 static void send_changed_seq(int fd, struct sockaddr_ll *daddr) in send_changed_seq() 550 static void send_changed_ts(int fd, struct sockaddr_ll *daddr) in send_changed_ts() 578 static void send_diff_opt(int fd, struct sockaddr_ll *daddr) in send_diff_opt() [all …]
|