Home
last modified time | relevance | path

Searched refs:file_slot (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/io_uring/ !
Dfiletable.c67 struct io_fixed_file *file_slot; in io_install_fixed_file() local
78 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
80 if (file_slot->file_ptr) { in io_install_fixed_file()
82 io_slot_file(file_slot)); in io_install_fixed_file()
86 file_slot->file_ptr = 0; in io_install_fixed_file()
92 io_fixed_file_set(file_slot, file); in io_install_fixed_file()
97 unsigned int file_slot) in __io_fixed_fd_install() argument
99 bool alloc_slot = file_slot == IORING_FILE_INDEX_ALLOC; in __io_fixed_fd_install()
106 file_slot = ret; in __io_fixed_fd_install()
108 file_slot--; in __io_fixed_fd_install()
[all …]
Dopenclose.c22 u32 file_slot; member
31 u32 file_slot; member
74 open->file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
75 if (open->file_slot && (open->how.flags & O_CLOEXEC)) in __io_openat_prep()
120 bool fixed = !!open->file_slot; in io_openat2()
165 open->file_slot); in io_openat2()
204 return __io_close_fixed(req->ctx, issue_flags, close->file_slot - 1); in io_close_fixed()
217 close->file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
218 if (close->file_slot && close->fd) in io_close_prep()
231 if (close->file_slot) { in io_close()
Dfiletable.h12 struct file *file, unsigned int file_slot);
14 unsigned int file_slot);
62 static inline void io_fixed_file_set(struct io_fixed_file *file_slot, in io_fixed_file_set() argument
65 file_slot->file_ptr = (unsigned long)file | in io_fixed_file_set()
Drsrc.c338 struct io_fixed_file *file_slot; in __io_sqe_files_update() local
363 file_slot = io_fixed_file_slot(&ctx->file_table, i); in __io_sqe_files_update()
365 if (file_slot->file_ptr) { in __io_sqe_files_update()
367 io_slot_file(file_slot)); in __io_sqe_files_update()
370 file_slot->file_ptr = 0; in __io_sqe_files_update()
389 io_fixed_file_set(file_slot, file); in __io_sqe_files_update()
714 struct io_fixed_file *file_slot; in io_sqe_files_register() local
740 file_slot = io_fixed_file_slot(&ctx->file_table, i); in io_sqe_files_register()
741 io_fixed_file_set(file_slot, file); in io_sqe_files_register()
Dnet.c32 u32 file_slot; member
42 u32 file_slot; member
1524 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
1525 if (accept->file_slot) { in io_accept_prep()
1529 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
1547 bool fixed = !!accept->file_slot; in io_accept()
1592 accept->file_slot); in io_accept()
1628 sock->file_slot = READ_ONCE(sqe->file_index); in io_socket_prep()
1632 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep()
1642 bool fixed = !!sock->file_slot; in io_socket()
[all …]