Home
last modified time | relevance | path

Searched refs:nr_user_files (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/io_uring/
Dfiletable.c72 if (slot_index >= ctx->nr_user_files) in io_install_fixed_file()
75 slot_index = array_index_nospec(slot_index, ctx->nr_user_files); in io_install_fixed_file()
154 if (offset >= ctx->nr_user_files) in io_fixed_fd_remove()
160 offset = array_index_nospec(offset, ctx->nr_user_files); in io_fixed_fd_remove()
186 if (range.resv || end > ctx->nr_user_files) in io_register_file_alloc_range()
Dmsg_ring.c93 if (unlikely(msg->src_fd >= ctx->nr_user_files)) in io_msg_send_fd()
96 msg->src_fd = array_index_nospec(msg->src_fd, ctx->nr_user_files); in io_msg_send_fd()
Drsrc.c448 if (up->offset + nr_args > ctx->nr_user_files) in __io_sqe_files_update()
466 i = array_index_nospec(up->offset + done, ctx->nr_user_files); in __io_sqe_files_update()
762 for (i = 0; i < ctx->nr_user_files; i++) { in __io_sqe_files_unregister()
784 ctx->nr_user_files = 0; in __io_sqe_files_unregister()
789 unsigned nr = ctx->nr_user_files; in io_sqe_files_unregister()
799 ctx->nr_user_files = 0; in io_sqe_files_unregister()
801 ctx->nr_user_files = nr; in io_sqe_files_unregister()
967 for (i = 0; i < nr_args; i++, ctx->nr_user_files++) { in io_sqe_files_register()
1009 io_file_table_set_alloc_range(ctx, 0, ctx->nr_user_files); in io_sqe_files_register()
Dfdinfo.c149 seq_printf(m, "UserFiles:\t%u\n", ctx->nr_user_files); in __io_uring_show_fdinfo()
150 for (i = 0; has_lock && i < ctx->nr_user_files; i++) { in __io_uring_show_fdinfo()
Dcancel.c221 if (unlikely(fd >= ctx->nr_user_files)) in __io_sync_cancel()
223 fd = array_index_nospec(fd, ctx->nr_user_files); in __io_sync_cancel()
Dio_uring.c1856 if (unlikely((unsigned int)fd >= ctx->nr_user_files)) in io_file_get_fixed()
1858 fd = array_index_nospec(fd, ctx->nr_user_files); in io_file_get_fixed()
4072 trace_io_uring_register(ctx, opcode, ctx->nr_user_files, ctx->nr_user_bufs, ret); in SYSCALL_DEFINE4()
/Linux-v6.1/include/linux/
Dio_uring_types.h239 unsigned nr_user_files; member