Home
last modified time | relevance | path

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

12345678910>>...43

/linux-6.6.21/tools/testing/selftests/memfd/
Dmemfd_test.c50 static ssize_t fd2name(int fd, char *buf, size_t bufsize) in fd2name()
76 int r, fd; in mfd_assert_new() local
96 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_assert_write() local
111 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); in sysctl_fail_write() local
128 int fd = open("/proc/sys/vm/memfd_noexec", O_RDONLY | O_CLOEXEC); in sysctl_assert_equal() local
154 int fd; in mfd_assert_reopen_fd() local
181 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals()
194 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals()
208 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals()
221 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals()
[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
/linux-6.6.21/arch/um/os-Linux/
Dfile.c43 int os_stat_fd(const int fd, struct uml_stat *ubuf) in os_stat_fd()
88 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) in os_ioctl_generic()
100 int os_get_ifname(int fd, char* namebuf) in os_get_ifname()
108 int os_set_slip(int fd) in os_set_slip()
123 int os_mode_fd(int fd, int mode) in os_mode_fd()
181 int fd, err, f = 0; in os_open_file() local
218 int fd, err; in os_connect_socket() local
243 void os_close_file(int fd) in os_close_file()
247 int os_fsync_file(int fd) in os_fsync_file()
254 int os_seek_file(int fd, unsigned long long offset) in os_seek_file()
[all …]
/linux-6.6.21/tools/testing/selftests/mm/
Dgup_longterm.c38 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()
238 int fd; in run_with_memfd() local
255 int fd; in run_with_tmpfile() local
278 int fd; in run_with_local_tmpfile() local
302 int fd; in run_with_memfd_hugetlb() local
324 static void test_shared_rw_pin(int fd, size_t size) in test_shared_rw_pin()
329 static void test_shared_rw_fast_pin(int fd, size_t size) in test_shared_rw_fast_pin()
334 static void test_shared_ro_pin(int fd, size_t size) in test_shared_ro_pin()
339 static void test_shared_ro_fast_pin(int fd, size_t size) in test_shared_ro_fast_pin()
[all …]
Dmemfd_secret.c46 static void test_file_apis(int fd) in test_file_apis()
59 static void test_mlock_limit(int fd) in test_mlock_limit()
86 static void try_process_vm_read(int fd, int pipefd[2]) in try_process_vm_read()
110 static void try_ptrace(int fd, int pipefd[2]) in try_ptrace()
161 static void test_remote_access(int fd, const char *name, in test_remote_access()
162 void (*func)(int fd, int pipefd[2])) in test_remote_access()
201 static void test_process_vm_read(int fd) in test_process_vm_read()
206 static void test_ptrace(int fd) in test_ptrace()
265 int fd; in main() local
/linux-6.6.21/tools/testing/vsock/
Dvsock_test.c40 int fd; in test_stream_connection_reset() local
76 int fd; in test_stream_bind_only_client() local
117 int fd; in test_stream_bind_only_server() local
137 int fd; in test_stream_client_close_client() local
151 int fd; in test_stream_client_close_server() local
172 int fd; in test_stream_server_close_client() local
193 int fd; in test_stream_server_close_server() local
265 int fd; in test_msg_peek_client() local
305 int fd; in test_msg_peek_server() local
403 int fd; in test_seqpacket_msg_bounds_client() local
[all …]
/linux-6.6.21/fs/
Dfile.c249 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
254 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
260 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
268 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
502 unsigned int fd; in alloc_fd() local
568 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
576 void put_unused_fd(unsigned int fd) in put_unused_fd()
602 void fd_install(unsigned int fd, struct file *file) in fd_install()
637 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
654 int close_fd(unsigned fd) in close_fd()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/scsi/
Dfdomain.c123 static inline void fdomain_make_bus_idle(struct fdomain *fd) in fdomain_make_bus_idle()
186 struct fdomain *fd = shost_priv(sh); in fdomain_select() local
210 static void fdomain_finish_cmd(struct fdomain *fd) in fdomain_finish_cmd()
220 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_read_data() local
240 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_write_data() local
267 struct fdomain *fd = container_of(work, struct fdomain, work); in fdomain_work() local
388 struct fdomain *fd = dev_id; in fdomain_irq() local
408 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_queue() local
441 struct fdomain *fd = shost_priv(sh); in fdomain_abort() local
462 struct fdomain *fd = shost_priv(sh); in fdomain_host_reset() local
[all …]
/linux-6.6.21/include/linux/
Dfile.h36 struct fd { struct
43 static inline void fdput(struct fd fd) in fdput()
62 static inline struct fd fdget(unsigned int fd) in fdget()
67 static inline struct fd fdget_raw(unsigned int fd) in fdget_raw()
72 static inline struct fd fdget_pos(int fd) in fdget_pos()
Dfdtable.h29 struct file __rcu **fd; /* current fd array */ member
36 static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) in close_on_exec()
41 static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) in fd_is_open()
83 static inline struct file *files_lookup_fd_raw(struct files_struct *files, unsigned int fd) in files_lookup_fd_raw()
94 static inline struct file *files_lookup_fd_locked(struct files_struct *files, unsigned int fd) in files_lookup_fd_locked()
101 static inline struct file *files_lookup_fd_rcu(struct files_struct *files, unsigned int fd) in files_lookup_fd_rcu()
108 static inline struct file *lookup_fd_rcu(unsigned int fd) in lookup_fd_rcu()
/linux-6.6.21/arch/um/drivers/
Dvector_user.c134 int fd = -1; in create_tap_fd() local
164 int fd = -1; in create_raw_fd() local
200 int fd = -1, i; in user_init_tap_fds() local
309 int fd = -1; in user_init_unix_fds() local
387 long fd; in strtofd() local
407 int fd = -1; in user_init_fd_fds() local
479 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass()
491 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers()
503 bool uml_tap_enable_vnet_headers(int fd) in uml_tap_enable_vnet_headers()
523 int fd = -1, gairet; in user_init_socket_fds() local
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dsockmap_helpers.h33 #define xaccept_nonblock(fd, addr, len) \ argument
42 #define xbind(fd, addr, len) \ argument
50 #define xclose(fd) \ argument
58 #define xconnect(fd, addr, len) \ argument
66 #define xgetsockname(fd, addr, len) \ argument
74 #define xgetsockopt(fd, level, name, val, len) \ argument
82 #define xlisten(fd, backlog) \ argument
90 #define xsetsockopt(fd, level, name, val, len) \ argument
98 #define xsend(fd, buf, len, flags) \ argument
106 #define xrecv_nonblock(fd, buf, len, flags) \ argument
[all …]
/linux-6.6.21/samples/uhid/
Duhid-example.c159 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-6.6.21/tools/lib/bpf/
Dbpf.c81 int fd; in sys_bpf_fd() local
89 int fd; in sys_bpf_prog_load() local
174 int fd; in bpf_map_create() local
240 int fd, attempts; in bpf_prog_load() local
380 int bpf_map_update_elem(int fd, const void *key, const void *value, in bpf_map_update_elem()
397 int bpf_map_lookup_elem(int fd, const void *key, void *value) in bpf_map_lookup_elem()
412 int bpf_map_lookup_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_elem_flags()
428 int bpf_map_lookup_and_delete_elem(int fd, const void *key, void *value) in bpf_map_lookup_and_delete_elem()
443 int bpf_map_lookup_and_delete_elem_flags(int fd, const void *key, void *value, __u64 flags) in bpf_map_lookup_and_delete_elem_flags()
459 int bpf_map_delete_elem(int fd, const void *key) in bpf_map_delete_elem()
[all …]
/linux-6.6.21/fs/hfsplus/
Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
55 struct hfs_find_data *fd, in hfs_find_1st_rec_by_cnid()
93 struct hfs_find_data *fd, in hfs_find_rec_by_key()
114 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd, in __hfs_brec_find()
164 int hfs_brec_find(struct hfs_find_data *fd, search_strategy_t do_key_compare) in hfs_brec_find()
218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
231 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
/linux-6.6.21/arch/xtensa/kernel/
Dsmp.c498 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-6.6.21/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 …]
/linux-6.6.21/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h39 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-6.6.21/include/soc/fsl/
Ddpaa2-fd.h104 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-6.6.21/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 …]
/linux-6.6.21/fs/hfs/
Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
55 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) in __hfs_brec_find()
107 int hfs_brec_find(struct hfs_find_data *fd) in hfs_brec_find()
161 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
174 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
/linux-6.6.21/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c50 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-6.6.21/drivers/clk/ti/
Dfapll.c71 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-6.6.21/tools/testing/selftests/bpf/
Dtest_maps.c40 int fd; in test_hashmap() local
135 int fd, i, j; in test_hashmap_sizes() local
158 int fd, i; in test_hashmap_percpu() local
270 int i, fd, ret; in helper_fill_hashmap() local
292 int fd, i, max_entries = 10000; in test_hashmap_walk() local
363 int key, next_key, fd; in test_arraymap() local
419 int key, next_key, fd, i; in test_arraymap_percpu() local
482 int key, fd, i; in test_arraymap_percpu_many_keys() local
513 int fd; in test_devmap() local
527 int fd; in test_devmap_hash() local
[all …]

12345678910>>...43