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()
3639 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX)) in SYSCALL_DEFINE6()3641 fd = array_index_nospec(fd, IO_RINGFD_REG_MAX); in SYSCALL_DEFINE6()4059 ret = io_ring_add_registered_file(tctx, file, 0, IO_RINGFD_REG_MAX); in io_uring_create()4606 if (unlikely(!tctx || fd >= IO_RINGFD_REG_MAX)) in SYSCALL_DEFINE4()4608 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];