Home
last modified time | relevance | path

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

/Linux-v5.10/tools/io_uring/
Dsetup.c17 sq->ring_sz = p->sq_off.array + p->sq_entries * sizeof(unsigned); in io_uring_mmap()
22 sq->khead = ptr + p->sq_off.head; in io_uring_mmap()
23 sq->ktail = ptr + p->sq_off.tail; in io_uring_mmap()
24 sq->kring_mask = ptr + p->sq_off.ring_mask; in io_uring_mmap()
25 sq->kring_entries = ptr + p->sq_off.ring_entries; in io_uring_mmap()
26 sq->kflags = ptr + p->sq_off.flags; in io_uring_mmap()
27 sq->kdropped = ptr + p->sq_off.dropped; in io_uring_mmap()
28 sq->array = ptr + p->sq_off.array; in io_uring_mmap()
Dio_uring-bench.c432 ptr = mmap(0, p.sq_off.array + p.sq_entries * sizeof(__u32), in setup_ring()
436 sring->head = ptr + p.sq_off.head; in setup_ring()
437 sring->tail = ptr + p.sq_off.tail; in setup_ring()
438 sring->ring_mask = ptr + p.sq_off.ring_mask; in setup_ring()
439 sring->ring_entries = ptr + p.sq_off.ring_entries; in setup_ring()
440 sring->flags = ptr + p.sq_off.flags; in setup_ring()
441 sring->array = ptr + p.sq_off.array; in setup_ring()
/Linux-v5.10/include/uapi/linux/
Dio_uring.h242 struct io_sqring_offsets sq_off; member
/Linux-v5.10/fs/
Dio_uring.c9350 memset(&p->sq_off, 0, sizeof(p->sq_off)); in io_uring_create()
9351 p->sq_off.head = offsetof(struct io_rings, sq.head); in io_uring_create()
9352 p->sq_off.tail = offsetof(struct io_rings, sq.tail); in io_uring_create()
9353 p->sq_off.ring_mask = offsetof(struct io_rings, sq_ring_mask); in io_uring_create()
9354 p->sq_off.ring_entries = offsetof(struct io_rings, sq_ring_entries); in io_uring_create()
9355 p->sq_off.flags = offsetof(struct io_rings, sq_flags); in io_uring_create()
9356 p->sq_off.dropped = offsetof(struct io_rings, sq_dropped); in io_uring_create()
9357 p->sq_off.array = (char *)ctx->sq_array - (char *)ctx->rings; in io_uring_create()