Versions in this module Expand all Collapse all v0 v0.5.1 Jan 10, 2025 Changes in this version + const INT_FLAG_REG_RING + const IORING_ACCEPT_MULTISHOT + const IORING_ASYNC_CANCEL_ALL + const IORING_ASYNC_CANCEL_ANY + const IORING_ASYNC_CANCEL_FD + const IORING_CQE_BUFFER_SHIFT + const IORING_CQE_F_BUFFER + const IORING_CQE_F_MORE + const IORING_CQE_F_SOCK_NONEMPTY + const IORING_CQ_EVENTFD_DISABLED + const IORING_ENTER_EXT_ARG + const IORING_ENTER_GETEVENTS + const IORING_ENTER_REGISTERED_RING + const IORING_ENTER_SQ_WAIT + const IORING_ENTER_SQ_WAKEUP + const IORING_FEAT_CQE_SKIP + const IORING_FEAT_CUR_PERSONALITY + const IORING_FEAT_EXT_ARG + const IORING_FEAT_FAST_POLL + const IORING_FEAT_LINKED_FILE + const IORING_FEAT_NATIVE_WORKERS + const IORING_FEAT_NODROP + const IORING_FEAT_POLL_32BITS + const IORING_FEAT_RSRC_TAGS + const IORING_FEAT_RW_CUR_POS + const IORING_FEAT_SINGLE_MMAP + const IORING_FEAT_SQPOLL_NONFIXED + const IORING_FEAT_SUBMIT_STABLE + const IORING_FILE_INDEX_ALLOC + const IORING_FSYNC_DATASYNC + const IORING_LINK_TIMEOUT_UPDATE + const IORING_OFF_CQ_RING + const IORING_OFF_SQES + const IORING_OFF_SQ_RING + const IORING_POLL_ADD_MULTI + const IORING_POLL_UPDATE_EVENTS + const IORING_POLL_UPDATE_USER_DATA + const IORING_RECVSEND_POLL_FIRST + const IORING_REGISTER_BUFFERS + const IORING_REGISTER_BUFFERS2 + const IORING_REGISTER_BUFFERS_UPDATE + const IORING_REGISTER_ENABLE_RINGS + const IORING_REGISTER_EVENTFD + const IORING_REGISTER_EVENTFD_ASYNC + const IORING_REGISTER_FILES + const IORING_REGISTER_FILES2 + const IORING_REGISTER_FILES_SKIP + const IORING_REGISTER_FILES_UPDATE + const IORING_REGISTER_FILES_UPDATE2 + const IORING_REGISTER_IOWQ_AFF + const IORING_REGISTER_IOWQ_MAX_WORKERS + const IORING_REGISTER_LAST + const IORING_REGISTER_PBUF_RING + const IORING_REGISTER_PERSONALITY + const IORING_REGISTER_PROBE + const IORING_REGISTER_RESTRICTIONS + const IORING_REGISTER_RING_FDS + const IORING_RESTRICTION_LAST + const IORING_RESTRICTION_REGISTER_OP + const IORING_RESTRICTION_SQE_FLAGS_ALLOWED + const IORING_RESTRICTION_SQE_FLAGS_REQUIRED + const IORING_RESTRICTION_SQE_OP + const IORING_RSRC_REGISTER_SPARSE + const IORING_SETUP_ATTACH_WQ + const IORING_SETUP_CLAMP + const IORING_SETUP_COOP_TASKRUN + const IORING_SETUP_CQE32 + const IORING_SETUP_CQSIZE + const IORING_SETUP_IOPOLL + const IORING_SETUP_R_DISABLED + const IORING_SETUP_SQE128 + const IORING_SETUP_SQPOLL + const IORING_SETUP_SQ_AFF + const IORING_SETUP_SUBMIT_ALL + const IORING_SETUP_TASKRUN_FLAG + const IORING_SQ_CQ_OVERFLOW + const IORING_SQ_NEED_WAKEUP + const IORING_SQ_TASKRUN + const IORING_TIMEOUT_ABS + const IORING_TIMEOUT_BOOTTIME + const IORING_TIMEOUT_CLOCK_MASK + const IORING_TIMEOUT_ETIME_SUCCESS + const IORING_TIMEOUT_REALTIME + const IORING_TIMEOUT_UPDATE + const IORING_TIMEOUT_UPDATE_MASK + const IORING_UNREGISTER_BUFFERS + const IORING_UNREGISTER_EVENTFD + const IORING_UNREGISTER_FILES + const IORING_UNREGISTER_IOWQ_AFF + const IORING_UNREGISTER_PBUF_RING + const IORING_UNREGISTER_PERSONALITY + const IORING_UNREGISTER_RING_FDS + const IOSQE_ASYNC + const IOSQE_ASYNC_BIT + const IOSQE_BUFFER_SELECT + const IOSQE_BUFFER_SELECT_BIT + const IOSQE_CQE_SKIP_SUCCESS + const IOSQE_CQE_SKIP_SUCCESS_BIT + const IOSQE_FIXED_FILE + const IOSQE_FIXED_FILE_BIT + const IOSQE_IO_DRAIN + const IOSQE_IO_DRAIN_BIT + const IOSQE_IO_HARDLINK + const IOSQE_IO_HARDLINK_BIT + const IOSQE_IO_LINK + const IOSQE_IO_LINK_BIT + const IO_URING_OP_SUPPORTED + const IO_WQ_BOUND + const IO_WQ_UNBOUND + const LIBURING_UDATA_TIMEOUT + const NSIG + const SIGSET_NWORDS + const SIGTMAX + const SIGTMIN + const SPLICE_F_FD_IN_FIXED + const SYS_IO_URING_ENTER — darwin/amd64, linux/amd64, windows/amd64 + const SYS_IO_URING_REGISTER — darwin/amd64, linux/amd64, windows/amd64 + const SYS_IO_URING_SETUP — darwin/amd64, linux/amd64, windows/amd64 + const SizeofIoUringCqe + const SizeofIoUringSqe + const SizeofUint32 + const SizeofUint64 + const SizeofUnsigned + func PrepAccept(sqe *IoUringSqe, fd int, rsa *syscall.RawSockaddrAny, rsaSz *uintptr, ...) + func PrepClose(sqe *IoUringSqe, fd int) + func PrepMultishotAccept(sqe *IoUringSqe, fd int, rsa *syscall.RawSockaddrAny, rsaSz *uintptr, ...) + func PrepNop(sqe *IoUringSqe) + func PrepRW(op IoUringOp, sqe *IoUringSqe, fd int, addr unsafe.Pointer, len int, ...) + func PrepRead(sqe *IoUringSqe, fd int, buf *byte, nb int, offset uint64) + func PrepReadv(sqe *IoUringSqe, fd int, iov *syscall.Iovec, nrVecs int, offset uint64) + func PrepReadv2(sqe *IoUringSqe, fd int, iov *syscall.Iovec, nrVecs int, offset uint64, ...) + func PrepRecvmsg(sqe *IoUringSqe, fd int, msg *syscall.Msghdr, flags uint) + func PrepSendmsg(sqe *IoUringSqe, fd int, msg *syscall.Msghdr, flags uint) + func PrepTimeout(sqe *IoUringSqe, ts *syscall.Timespec, count uint32, flags uint32) + func PrepTimeoutRemove(sqe *IoUringSqe, userDaata uint64, flags uint32) + func PrepTimeoutUpdate(sqe *IoUringSqe, ts *syscall.Timespec, userData uint64, flags uint32) + func PrepWrite(sqe *IoUringSqe, fd int, buf *byte, nb int, offset uint64) + func PrepWritev(sqe *IoUringSqe, fd int, iov *syscall.Iovec, nrVecs int, offset uint64) + func PrepWritev2(sqe *IoUringSqe, fd int, iov *syscall.Iovec, nrVecs int, offset uint64, ...) + type IoCqringOffsets struct + Cqes uint32 + Flags uint32 + Head uint32 + Overflow uint32 + RingEntries uint32 + RingMask uint32 + Tail uint32 + type IoSqringOffsets struct + Array uint32 + Dropped uint32 + Flags uint32 + Head uint32 + RingEntries uint32 + RingMask uint32 + Tail uint32 + type IoUring struct + Cq IoUringCq + EnterRingFd int + Features uint32 + Flags uint32 + IntFlags uint8 + RingFd int + Sq IoUringSq + func New(entries uint32, flags uint32) (*IoUring, error) + func NewWithParams(entries uint32, params *IoUringParams) (*IoUring, error) + func (h *IoUring) Close() + func (h *IoUring) GetSqe() *IoUringSqe + func (h *IoUring) SeenCqe(cqe *IoUringCqe) + func (h *IoUring) Submit() (int, error) + func (h *IoUring) SubmitAndWait(waitNr uint32) (int, error) + func (h *IoUring) WaitCqe(cqePtr **IoUringCqe) error + type IoUringBuf struct + Addr uint64 + Bid uint16 + Len uint32 + type IoUringBufReg struct + Bgid uint16 + Pad uint16 + RingAddr uint64 + RingEntries uint32 + type IoUringBufRing struct + Anon0 struct{ ... } + type IoUringCq struct + Cqes ioUringCqeArray + RingPtr unsafe.Pointer + RingSz uint32 + type IoUringCqe struct + Flags uint32 + Res int32 + UserData UserData + type IoUringFilesUpdate struct + Fds uint64 + Offset uint32 + type IoUringGeteventsArg struct + Pad uint32 + Sigmask uint64 + SigmaskSz uint32 + Ts uint64 + type IoUringOp = uint8 + const IORING_OP_ACCEPT + const IORING_OP_ASYNC_CANCEL + const IORING_OP_CLOSE + const IORING_OP_CONNECT + const IORING_OP_EPOLL_CTL + const IORING_OP_FADVISE + const IORING_OP_FALLOCATE + const IORING_OP_FGETXATTR + const IORING_OP_FILES_UPDATE + const IORING_OP_FSETXATTR + const IORING_OP_FSYNC + const IORING_OP_GETXATTR + const IORING_OP_LAST + const IORING_OP_LINKAT + const IORING_OP_LINK_TIMEOUT + const IORING_OP_MADVISE + const IORING_OP_MKDIRAT + const IORING_OP_MSG_RING + const IORING_OP_NOP + const IORING_OP_OPENAT + const IORING_OP_OPENAT2 + const IORING_OP_POLL_ADD + const IORING_OP_POLL_REMOVE + const IORING_OP_PROVIDE_BUFFERS + const IORING_OP_READ + const IORING_OP_READV + const IORING_OP_READ_FIXED + const IORING_OP_RECV + const IORING_OP_RECVMSG + const IORING_OP_REMOVE_BUFFERS + const IORING_OP_RENAMEAT + const IORING_OP_SEND + const IORING_OP_SENDMSG + const IORING_OP_SETXATTR + const IORING_OP_SHUTDOWN + const IORING_OP_SOCKET + const IORING_OP_SPLICE + const IORING_OP_STATX + const IORING_OP_SYMLINKAT + const IORING_OP_SYNC_FILE_RANGE + const IORING_OP_TEE + const IORING_OP_TIMEOUT + const IORING_OP_TIMEOUT_REMOVE + const IORING_OP_UNLINKAT + const IORING_OP_URING_CMD + const IORING_OP_WRITE + const IORING_OP_WRITEV + const IORING_OP_WRITE_FIXED + type IoUringParams struct + CqEntries uint32 + CqOff IoCqringOffsets + Features uint32 + Flags uint32 + SqEntries uint32 + SqOff IoSqringOffsets + SqThreadCpu uint32 + SqThreadIdle uint32 + WqFd uint32 + type IoUringProbe struct + type IoUringProbeOp struct + type IoUringRestriction struct + Union1 uint8 + type IoUringRsrcRegister struct + Data uint64 + Flags uint32 + Nr uint32 + Tags uint64 + type IoUringRsrcUpdate struct + Data uint64 + Offset uint32 + type IoUringRsrcUpdate2 struct + Data uint64 + Nr uint32 + Offset uint32 + Tags uint64 + type IoUringSq struct + Array uint32Array + RingPtr unsafe.Pointer + RingSz uint32 + SqeHead uint32 + SqeTail uint32 + Sqes ioUringSqeArray + type IoUringSqe struct + Addr3 uint64 + Fd int32 + Flags uint8 + IoPrio uint16 + Len uint32 + Opcode IoUringOp + Personality uint16 + UserData UserData + type IoUringSqe_Union1 uint64 + func (u *IoUringSqe_Union1) SetAddr2(v uint64) + func (u *IoUringSqe_Union1) SetOffset(v uint64) + type IoUringSqe_Union2 uint64 + func (u *IoUringSqe_Union2) SetAddr(v unsafe.Pointer) + func (u *IoUringSqe_Union2) SetAddr_Value(v uint64) + func (u *IoUringSqe_Union2) SetSpliceOffsetIn(v uint64) + type IoUringSqe_Union3 uint32 + func (u *IoUringSqe_Union3) SetAcceptFlags(v uint32) + func (u *IoUringSqe_Union3) SetCancelFlags(v uint32) + func (u *IoUringSqe_Union3) SetFadviseAdvice(v uint32) + func (u *IoUringSqe_Union3) SetHardlinkFlags(v uint32) + func (u *IoUringSqe_Union3) SetMsgFlags(v uint32) + func (u *IoUringSqe_Union3) SetOpFlags(v uint32) + func (u *IoUringSqe_Union3) SetOpenFlags(v uint32) + func (u *IoUringSqe_Union3) SetPoll32Events(v uint32) + func (u *IoUringSqe_Union3) SetPollEvents(v uint16) + func (u *IoUringSqe_Union3) SetRenameFlags(v uint32) + func (u *IoUringSqe_Union3) SetRwFlags(v uint32) + func (u *IoUringSqe_Union3) SetSpliceFlags(v uint32) + func (u *IoUringSqe_Union3) SetStatxFlags(v uint32) + func (u *IoUringSqe_Union3) SetSyncRangeFlags(v uint32) + func (u *IoUringSqe_Union3) SetTimeoutFlags(v uint32) + func (u *IoUringSqe_Union3) SetUnlinkFlags(v uint32) + func (u *IoUringSqe_Union3) SetXattrFlags(v uint32) + func (u IoUringSqe_Union3) GetOpFlags() uint32 + type IoUringSqe_Union4 uint16 + func (u *IoUringSqe_Union4) SetBufGroup(v uint16) + func (u *IoUringSqe_Union4) SetBufIndex(v uint16) + type IoUringSqe_Union5 uint32 + func (u *IoUringSqe_Union5) SetFileIndex(v uint32) + func (u *IoUringSqe_Union5) SetSpliceFdIn(v int32) + type Sigset_t struct + Val [SIGSET_NWORDS]uint64 + type UserData [8]byte + func (u *UserData) SetUint64(v uint64) + func (u *UserData) SetUintptr(v uintptr) + func (u *UserData) SetUnsafe(ptr unsafe.Pointer) + func (u UserData) GetUint64() uint64 + func (u UserData) GetUintptr() uintptr + func (u UserData) GetUnsafe() unsafe.Pointer + func (u UserData) IsZero() bool