Skip to content

Instantly share code, notes, and snippets.

@fadhil-riyanto
Created July 10, 2024 15:10
Show Gist options
  • Save fadhil-riyanto/35083851fea9b044f28a887dd8801653 to your computer and use it in GitHub Desktop.
Save fadhil-riyanto/35083851fea9b044f28a887dd8801653 to your computer and use it in GitHub Desktop.
linux_kernel_io_uring_sqring_offsets definition
// source tree: https://github.com/torvalds/linux/blob/34afb82a3c67f869267a26f593b6f8fc6bf35905/include/uapi/linux/io_uring.h#L462
struct io_sqring_offsets {
__u32 head; /* offset of ring head */
__u32 tail; /* offset of ring tail */
__u32 ring_mask; /* ring mask value */
__u32 ring_entries; /* entries in ring */
__u32 flags; /* ring flags */
__u32 dropped; /* number of sqes not submitted */
__u32 array; /* sqe index array /
__u32 resv1;
__u64 resv2;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment