Lines Matching refs:file_slot
578 u32 file_slot; member
594 u32 file_slot; member
604 u32 file_slot; member
674 u32 file_slot; member
5149 req->open.file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
5150 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC)) in __io_openat_prep()
5212 struct file *file, unsigned int file_slot) in io_fixed_fd_install() argument
5214 bool alloc_slot = file_slot == IORING_FILE_INDEX_ALLOC; in io_fixed_fd_install()
5224 file_slot = ret; in io_fixed_fd_install()
5226 file_slot--; in io_fixed_fd_install()
5229 ret = io_install_fixed_file(req, file, issue_flags, file_slot); in io_fixed_fd_install()
5231 ret = file_slot; in io_fixed_fd_install()
5244 bool fixed = !!req->open.file_slot; in io_openat2()
5295 req->open.file_slot); in io_openat2()
5723 req->close.file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
5724 if (req->close.file_slot && req->close.fd) in io_close_prep()
5738 if (req->close.file_slot) { in io_close()
6307 accept->file_slot = READ_ONCE(sqe->file_index); in io_accept_prep()
6308 if (accept->file_slot) { in io_accept_prep()
6312 accept->file_slot != IORING_FILE_INDEX_ALLOC) in io_accept_prep()
6330 bool fixed = !!accept->file_slot; in io_accept()
6365 accept->file_slot); in io_accept()
6400 sock->file_slot = READ_ONCE(sqe->file_index); in io_socket_prep()
6404 if (sock->file_slot && (sock->flags & SOCK_CLOEXEC)) in io_socket_prep()
6414 bool fixed = !!sock->file_slot; in io_socket()
6438 sock->file_slot); in io_socket()
8136 static void io_fixed_file_set(struct io_fixed_file *file_slot, struct file *file) in io_fixed_file_set() argument
8141 file_slot->file_ptr = file_ptr; in io_fixed_file_set()
9644 struct io_fixed_file *file_slot; in io_sqe_files_register() local
9679 file_slot = io_fixed_file_slot(&ctx->file_table, i); in io_sqe_files_register()
9680 io_fixed_file_set(file_slot, file); in io_sqe_files_register()
9714 struct io_fixed_file *file_slot; in io_install_fixed_file() local
9725 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
9727 if (file_slot->file_ptr) { in io_install_fixed_file()
9734 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_install_fixed_file()
9739 file_slot->file_ptr = 0; in io_install_fixed_file()
9747 io_fixed_file_set(file_slot, file); in io_install_fixed_file()
9762 struct io_fixed_file *file_slot; in __io_close_fixed() local
9778 file_slot = io_fixed_file_slot(&ctx->file_table, offset); in __io_close_fixed()
9780 if (!file_slot->file_ptr) in __io_close_fixed()
9783 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in __io_close_fixed()
9788 file_slot->file_ptr = 0; in __io_close_fixed()
9799 return __io_close_fixed(req, issue_flags, req->close.file_slot - 1); in io_close_fixed()
9809 struct io_fixed_file *file_slot; in __io_sqe_files_update() local
9836 file_slot = io_fixed_file_slot(&ctx->file_table, i); in __io_sqe_files_update()
9838 if (file_slot->file_ptr) { in __io_sqe_files_update()
9839 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in __io_sqe_files_update()
9843 file_slot->file_ptr = 0; in __io_sqe_files_update()
9872 io_fixed_file_set(file_slot, file); in __io_sqe_files_update()