Home
last modified time | relevance | path

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

/linux-6.3-rc2/io_uring/
A Dfiletable.c65 struct io_fixed_file *file_slot; in io_install_fixed_file() local
78 if (file_slot->file_ptr) { in io_install_fixed_file()
90 file_slot->file_ptr = 0; in io_install_fixed_file()
98 io_fixed_file_set(file_slot, file); in io_install_fixed_file()
108 unsigned int file_slot) in __io_fixed_fd_install() argument
117 file_slot = ret; in __io_fixed_fd_install()
119 file_slot--; in __io_fixed_fd_install()
124 ret = file_slot; in __io_fixed_fd_install()
148 struct io_fixed_file *file_slot; in io_fixed_fd_remove() local
162 if (!file_slot->file_ptr) in io_fixed_fd_remove()
[all …]
A Dopenclose.c22 u32 file_slot; member
31 u32 file_slot; member
67 open->file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
68 if (open->file_slot && (open->how.flags & O_CLOEXEC)) in __io_openat_prep()
113 bool fixed = !!open->file_slot; in io_openat2()
159 open->file_slot); in io_openat2()
198 return __io_close_fixed(req->ctx, issue_flags, close->file_slot - 1); in io_close_fixed()
211 close->file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
212 if (close->file_slot && close->fd) in io_close_prep()
226 if (close->file_slot) { in io_close()
A Dfiletable.h16 struct file *file, unsigned int file_slot);
18 unsigned int file_slot);
54 static inline void io_fixed_file_set(struct io_fixed_file *file_slot, in io_fixed_file_set() argument
60 file_slot->file_ptr = file_ptr; in io_fixed_file_set()
A Dnet.c31 u32 file_slot; member
41 u32 file_slot; member
1280 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
1281 if (accept->file_slot) { in io_accept_prep()
1285 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
1303 bool fixed = !!accept->file_slot; in io_accept()
1339 accept->file_slot); in io_accept()
1366 sock->file_slot = READ_ONCE(sqe->file_index); in io_socket_prep()
1370 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep()
1380 bool fixed = !!sock->file_slot; in io_socket()
[all …]
A Drsrc.c455 struct io_fixed_file *file_slot; in __io_sqe_files_update() local
482 file_slot = io_fixed_file_slot(&ctx->file_table, i); in __io_sqe_files_update()
484 if (file_slot->file_ptr) { in __io_sqe_files_update()
485 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in __io_sqe_files_update()
489 file_slot->file_ptr = 0; in __io_sqe_files_update()
518 io_fixed_file_set(file_slot, file); in __io_sqe_files_update()
983 struct io_fixed_file *file_slot; in io_sqe_files_register() local
1018 file_slot = io_fixed_file_slot(&ctx->file_table, i); in io_sqe_files_register()
1019 io_fixed_file_set(file_slot, file); in io_sqe_files_register()

Completed in 12 milliseconds