Home
last modified time | relevance | path

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

/linux/io_uring/
H A Dkbuf.c205 __u16 nr_avail, tail, head; in io_ring_buffers_peek() local
210 nr_avail = min_t(__u16, tail - head, UIO_MAXIOV); in io_ring_buffers_peek()
211 if (unlikely(!nr_avail)) in io_ring_buffers_peek()
227 nr_avail = 1; in io_ring_buffers_peek()
233 if (nr_avail > needed) in io_ring_buffers_peek()
234 nr_avail = needed; in io_ring_buffers_peek()
242 if (arg->mode & KBUF_MODE_EXPAND && nr_avail > nr_iovs && arg->max_len) { in io_ring_buffers_peek()
243 iov = kmalloc_array(nr_avail, sizeof(struct iovec), GFP_KERNEL); in io_ring_buffers_peek()
249 nr_iovs = nr_avail; in io_ring_buffers_peek()
250 } else if (nr_avail < nr_iovs) { in io_ring_buffers_peek()
[all …]