Searched refs:IO_RINGFD_REG_MAX (Results 1 – 3 of 3) sorted by relevance
203 for (i = 0; i < IO_RINGFD_REG_MAX; i++) { in io_uring_unreg_ringfd()216 offset = array_index_nospec(offset, IO_RINGFD_REG_MAX); in io_ring_add_registered_file()261 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_register()286 end = IO_RINGFD_REG_MAX; in io_ringfd_register()288 if (reg.offset >= IO_RINGFD_REG_MAX) { in io_ringfd_register()320 if (!nr_args || nr_args > IO_RINGFD_REG_MAX) in io_ringfd_unregister()330 if (reg.resv || reg.data || reg.offset >= IO_RINGFD_REG_MAX) { in io_ringfd_unregister()335 reg.offset = array_index_nospec(reg.offset, IO_RINGFD_REG_MAX); in io_ringfd_unregister()
3621 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX)) in SYSCALL_DEFINE6()3623 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX); in SYSCALL_DEFINE6()4041 ret = io_ring_add_registered_file(tctx, file, 0, IO_RINGFD_REG_MAX); in io_uring_create()4588 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX)) in SYSCALL_DEFINE4()4590 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX); in SYSCALL_DEFINE4()
50 #define IO_RINGFD_REG_MAX 16 macro57 struct file *registered_rings[IO_RINGFD_REG_MAX];