Lines Matching refs:file_slot
65 struct io_fixed_file *file_slot; in io_install_fixed_file() local
76 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index); in io_install_fixed_file()
78 if (file_slot->file_ptr) { in io_install_fixed_file()
85 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK); 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
110 bool alloc_slot = file_slot == IORING_FILE_INDEX_ALLOC; in __io_fixed_fd_install()
117 file_slot = ret; in __io_fixed_fd_install()
119 file_slot--; in __io_fixed_fd_install()
122 ret = io_install_fixed_file(ctx, file, file_slot); in __io_fixed_fd_install()
124 ret = file_slot; in __io_fixed_fd_install()
132 struct file *file, unsigned int file_slot) in io_fixed_fd_install() argument
138 ret = __io_fixed_fd_install(ctx, file, file_slot); in io_fixed_fd_install()
148 struct io_fixed_file *file_slot; in io_fixed_fd_remove() local
161 file_slot = io_fixed_file_slot(&ctx->file_table, offset); in io_fixed_fd_remove()
162 if (!file_slot->file_ptr) in io_fixed_fd_remove()
165 file = (struct file *)(file_slot->file_ptr & FFS_MASK); in io_fixed_fd_remove()
170 file_slot->file_ptr = 0; in io_fixed_fd_remove()