| /kernel/linux/linux-5.10/tools/testing/selftests/memfd/ |
| D | memfd_test.c | 39 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 …]
|
| D | fuse_test.c | 45 int r, fd; in mfd_assert_new() local 63 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 76 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() 88 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals() 102 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals() 123 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared() 141 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private() 230 int fd, mfd, r; in main() local
|
| /kernel/linux/linux-4.19/tools/testing/selftests/memfd/ |
| D | memfd_test.c | 39 int r, fd; in mfd_assert_new() local 70 static unsigned int mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 83 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() 94 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() 107 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() 126 static void mfd_assert_size(int fd, size_t size) in mfd_assert_size() 142 static int mfd_assert_dup(int fd) in mfd_assert_dup() 155 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared() 173 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private() 191 static int mfd_assert_open(int fd, int flags, mode_t mode) in mfd_assert_open() [all …]
|
| D | fuse_test.c | 45 int r, fd; in mfd_assert_new() local 63 static __u64 mfd_assert_get_seals(int fd) in mfd_assert_get_seals() 76 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() 88 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals() 102 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals() 123 static void *mfd_assert_mmap_shared(int fd) in mfd_assert_mmap_shared() 141 static void *mfd_assert_mmap_private(int fd) in mfd_assert_mmap_private() 230 int fd, mfd, r; in main() local
|
| /kernel/linux/linux-4.19/arch/um/os-Linux/ |
| D | file.c | 38 int os_stat_fd(const int fd, struct uml_stat *ubuf) in os_stat_fd() 83 int os_ioctl_generic(int fd, unsigned int cmd, unsigned long arg) in os_ioctl_generic() 95 int os_get_ifname(int fd, char* namebuf) in os_get_ifname() 103 int os_set_slip(int fd) in os_set_slip() 118 int os_mode_fd(int fd, int mode) in os_mode_fd() 176 int fd, err, f = 0; in os_open_file() local 213 int fd, err; in os_connect_socket() local 238 void os_close_file(int fd) in os_close_file() 242 int os_fsync_file(int fd) in os_fsync_file() 249 int os_seek_file(int fd, unsigned long long offset) in os_seek_file() [all …]
|
| /kernel/linux/linux-5.10/arch/um/os-Linux/ |
| D | file.c | 43 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 …]
|
| /kernel/liteos_m/kal/libc/newlib/porting/src/ |
| D | fs.c | 65 int _close(int fd) in _close() 70 ssize_t _read(int fd, void *buf, size_t nbyte) in _read() 75 ssize_t _write(int fd, const void *buf, size_t nbyte) in _write() 80 off_t _lseek(int fd, off_t offset, int whence) in _lseek() 90 int _fstat(int fd, struct stat *buf) in _fstat() 100 int fsync(int fd) in fsync() 140 int ftruncate(int fd, off_t length) in ftruncate() 145 int ioctl(int fd, int req, ...) in ioctl() 150 ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset) in pread() 155 ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset) in pwrite() [all …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | file.h | 33 struct fd { struct 40 static inline void fdput(struct fd fd) in fdput() 58 static inline struct fd fdget(unsigned int fd) in fdget() 63 static inline struct fd fdget_raw(unsigned int fd) in fdget_raw() 68 static inline struct fd fdget_pos(int fd) in fdget_pos()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | file.h | 36 struct fd { struct 43 static inline void fdput(struct fd fd) in fdput() 63 static inline struct fd fdget(unsigned int fd) in fdget() 68 static inline struct fd fdget_raw(unsigned int fd) in fdget_raw() 73 static inline struct fd fdget_pos(int fd) in fdget_pos() 108 static inline int receive_fd_replace(int fd, struct file *file, unsigned int o_flags) in receive_fd_replace()
|
| /kernel/linux/linux-5.10/tools/testing/selftests/sync/ |
| 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()
|
| /kernel/linux/linux-4.19/tools/testing/selftests/sync/ |
| 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()
|
| /kernel/linux/linux-4.19/include/soc/fsl/ |
| D | dpaa2-fd.h | 94 static inline dma_addr_t dpaa2_fd_get_addr(const struct dpaa2_fd *fd) in dpaa2_fd_get_addr() 104 static inline void dpaa2_fd_set_addr(struct dpaa2_fd *fd, dma_addr_t addr) in dpaa2_fd_set_addr() 115 static inline u32 dpaa2_fd_get_frc(const struct dpaa2_fd *fd) in dpaa2_fd_get_frc() 125 static inline void dpaa2_fd_set_frc(struct dpaa2_fd *fd, u32 frc) in dpaa2_fd_set_frc() 136 static inline u32 dpaa2_fd_get_ctrl(const struct dpaa2_fd *fd) in dpaa2_fd_get_ctrl() 146 static inline void dpaa2_fd_set_ctrl(struct dpaa2_fd *fd, u32 ctrl) in dpaa2_fd_set_ctrl() 157 static inline dma_addr_t dpaa2_fd_get_flc(const struct dpaa2_fd *fd) in dpaa2_fd_get_flc() 167 static inline void dpaa2_fd_set_flc(struct dpaa2_fd *fd, dma_addr_t flc_addr) in dpaa2_fd_set_flc() 172 static inline bool dpaa2_fd_short_len(const struct dpaa2_fd *fd) in dpaa2_fd_short_len() 184 static inline u32 dpaa2_fd_get_len(const struct dpaa2_fd *fd) in dpaa2_fd_get_len() [all …]
|
| /kernel/linux/linux-5.10/fs/ |
| D | file.c | 231 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec() 236 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec() 242 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd() 250 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd() 496 unsigned int fd; in __alloc_fd() local 567 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd() 575 void put_unused_fd(unsigned int fd) in put_unused_fd() 605 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install() 633 void fd_install(unsigned int fd, struct file *file) in fd_install() 640 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/ |
| D | fdomain.c | 118 static inline void fdomain_make_bus_idle(struct fdomain *fd) in fdomain_make_bus_idle() 181 struct fdomain *fd = shost_priv(sh); in fdomain_select() local 205 static void fdomain_finish_cmd(struct fdomain *fd, int result) in fdomain_finish_cmd() 216 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_read_data() local 236 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_write_data() local 263 struct fdomain *fd = container_of(work, struct fdomain, work); in fdomain_work() local 380 struct fdomain *fd = dev_id; in fdomain_irq() local 399 struct fdomain *fd = shost_priv(cmd->device->host); in fdomain_queue() local 432 struct fdomain *fd = shost_priv(sh); in fdomain_abort() local 453 struct fdomain *fd = shost_priv(sh); in fdomain_host_reset() local [all …]
|
| /kernel/liteos_a/testsuites/unittest/extended/liteipc/ |
| D | smgr_demo.cpp | 54 uint32_t SetCms(int fd) in SetCms() 59 void SendReply(int fd, IpcMsg *dataIn, uint32_t result, uint32_t serviceHandle) in SendReply() 87 void FreeBuffer(int fd, IpcMsg *dataIn) in FreeBuffer() 99 static uint32_t SendCmsCmd(int fd, CmsCmdContent *content) in SendCmsCmd() 109 uint32_t RegService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle) in RegService() 144 uint32_t GetService(int fd, char *serviceName, uint32_t nameLen, uint32_t *serviceHandle) in GetService() 178 static void HandleServiceRegAndGet(int fd, IpcMsg *data) in HandleServiceRegAndGet() 244 static uint32_t CmsLoop(int fd) in CmsLoop() 270 void StartCms(int fd) in StartCms() 276 void StopCms(int fd) in StopCms()
|
| /kernel/linux/linux-5.10/tools/testing/vsock/ |
| D | vsock_test.c | 35 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
|
| /kernel/linux/linux-5.10/samples/uhid/ |
| 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
|
| /kernel/linux/linux-4.19/samples/uhid/ |
| 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
|
| /kernel/linux/linux-4.19/fs/ |
| D | file.c | 228 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec() 233 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec() 239 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd() 247 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd() 483 unsigned int fd; in __alloc_fd() local 549 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd() 557 void put_unused_fd(unsigned int fd) in put_unused_fd() 587 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install() 611 void fd_install(unsigned int fd, struct file *file) in fd_install() 621 int __close_fd(struct files_struct *files, unsigned fd) in __close_fd() [all …]
|
| /kernel/linux/linux-4.19/arch/um/drivers/ |
| D | vector_user.c | 122 int fd = -1; in user_init_tap_fds() local 277 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass() 289 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers() 301 bool uml_tap_enable_vnet_headers(int fd) in uml_tap_enable_vnet_headers() 321 int fd = -1, gairet; in user_init_socket_fds() local 473 int uml_vector_sendmsg(int fd, void *hdr, int flags) in uml_vector_sendmsg() 486 int uml_vector_recvmsg(int fd, void *hdr, int flags) in uml_vector_recvmsg() 499 int uml_vector_writev(int fd, void *hdr, int iovcount) in uml_vector_writev() 513 int fd, in uml_vector_sendmmsg() 530 int fd, in uml_vector_recvmmsg() [all …]
|
| /kernel/liteos_m/kal/libc/musl/ |
| D | fs.c | 68 int close(int fd) in close() 73 ssize_t read(int fd, void *buf, size_t nbyte) in read() 78 ssize_t write(int fd, const void *buf, size_t nbyte) in write() 83 off_t lseek(int fd, off_t offset, int whence) in lseek() 93 int fstat(int fd, struct stat *buf) in fstat() 103 int fsync(int fd) in fsync() 143 int ftruncate(int fd, off_t length) in ftruncate() 148 ssize_t pread(int fd, void *buf, size_t nbyte, off_t offset) in pread() 153 ssize_t pwrite(int fd, const void *buf, size_t nbyte, off_t offset) in pwrite()
|
| /kernel/linux/linux-4.19/fs/hfsplus/ |
| D | bfind.c | 15 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()
|
| /kernel/linux/linux-5.10/fs/hfsplus/ |
| D | bfind.c | 15 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()
|
| /kernel/linux/linux-5.10/arch/um/drivers/ |
| D | vector_user.c | 133 int fd = -1; in create_tap_fd() local 163 int fd = -1; in create_raw_fd() local 199 int fd = -1, i; in user_init_tap_fds() local 308 int fd = -1; in user_init_unix_fds() local 386 long fd; in strtofd() local 406 int fd = -1; in user_init_fd_fds() local 478 bool uml_raw_enable_qdisc_bypass(int fd) in uml_raw_enable_qdisc_bypass() 490 bool uml_raw_enable_vnet_headers(int fd) in uml_raw_enable_vnet_headers() 502 bool uml_tap_enable_vnet_headers(int fd) in uml_tap_enable_vnet_headers() 522 int fd = -1, gairet; in user_init_socket_fds() local [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kernel/ |
| D | sys_ppc32.c | 53 unsigned long fd, unsigned long pgoff) in compat_sys_mmap2() 64 compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t count, in compat_sys_pread64() 70 compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf, compat_size_t count, in compat_sys_pwrite64() 76 compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offhi, u32 offlo, u32 count) in compat_sys_readahead() 87 asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, in compat_sys_fallocate() 94 asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long high, in compat_sys_ftruncate64() 100 long ppc32_fadvise64(int fd, u32 unused, u32 offset_high, u32 offset_low, in ppc32_fadvise64() 107 asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags, in compat_sys_sync_file_range2()
|