Lines Matching defs:file_slot
505 u32 file_slot;
521 u32 file_slot;
590 u32 file_slot;
4187 req->open.file_slot = READ_ONCE(sqe->file_index);
4188 if (req->open.file_slot && (req->open.how.flags & O_CLOEXEC))
4229 bool fixed = !!req->open.file_slot;
4282 req->open.file_slot - 1);
4626 req->close.file_slot = READ_ONCE(sqe->file_index);
4627 if (req->close.file_slot && req->close.fd)
4641 if (req->close.file_slot) {
5205 accept->file_slot = READ_ONCE(sqe->file_index);
5206 if (accept->file_slot && (accept->flags & SOCK_CLOEXEC))
5220 bool fixed = !!accept->file_slot;
5248 accept->file_slot - 1);
6940 static void io_fixed_file_set(struct io_fixed_file *file_slot, struct file *file)
6950 file_slot->file_ptr = file_ptr;
8480 struct io_fixed_file *file_slot;
8494 file_slot = io_fixed_file_slot(&ctx->file_table, slot_index);
8496 if (file_slot->file_ptr) {
8503 old_file = (struct file *)(file_slot->file_ptr & FFS_MASK);
8508 file_slot->file_ptr = 0;
8513 io_fixed_file_set(file_slot, file);
8526 unsigned int offset = req->close.file_slot - 1;
8528 struct io_fixed_file *file_slot;
8544 file_slot = io_fixed_file_slot(&ctx->file_table, offset);
8546 if (!file_slot->file_ptr)
8549 file = (struct file *)(file_slot->file_ptr & FFS_MASK);
8554 file_slot->file_ptr = 0;
8569 struct io_fixed_file *file_slot;
8596 file_slot = io_fixed_file_slot(&ctx->file_table, i);
8598 if (file_slot->file_ptr) {
8599 file = (struct file *)(file_slot->file_ptr & FFS_MASK);
8603 file_slot->file_ptr = 0;
8626 io_fixed_file_set(file_slot, file);