Class IoUringIoOps
java.lang.Object
io.netty.channel.uring.IoUringIoOps
- All Implemented Interfaces:
IoOps
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longprivate final intprivate final byteprivate final shortprivate final intprivate final byteprivate final shortprivate final longprivate final longprivate final intprivate final shortprivate final intprivate final long -
Constructor Summary
ConstructorsConstructorDescriptionIoUringIoOps(byte opcode, byte flags, short ioPrio, int fd, long union1, long union2, int len, int union3, long data, short union4, short personality, int union5, long union6) Create a new instance which represents theio_uring_sqestruct.IoUringIoOps(byte opcode, byte flags, short ioPrio, int fd, long union1, long union2, int len, int union3, short data, short union4, short personality, int union5, long union6) Deprecated. -
Method Summary
Modifier and TypeMethodDescription(package private) shortdata()Deprecated.useuserData()instead.(package private) intfd()(package private) byteflags()(package private) shortioPrio()(package private) intlen()(package private) static IoUringIoOpsnewAccept(int fd, byte flags, int acceptFlags, short ioPrio, long acceptedAddressMemoryAddress, long acceptedAddressLengthMemoryAddress, short data) Returns a newOP_ACCEPTIoUringIoOps.(package private) static IoUringIoOpsnewAsyncCancel(byte flags, long userData, short data) Returns a newOP_ASYNC_CANCELIoUringIoOps.(package private) static IoUringIoOpsnewClose(int fd, byte flags, short data) Returns a newOP_CLOSEIoUringIoOps.(package private) static IoUringIoOpsnewConnect(int fd, byte flags, long remoteMemoryAddress, int addrLen, short data) Returns a newOP_CONNECTIoUringIoOps.(package private) static IoUringIoOpsnewConnect(int fd, byte flags, long remoteMemoryAddress, short data) Returns a newOP_CONNECTIoUringIoOps.(package private) static IoUringIoOpsnewPollAdd(int fd, byte flags, int mask, int len, short data) Returns a newOP_POLL_ADDIoUringIoOps.(package private) static IoUringIoOpsnewRecv(int fd, byte flags, short ioPrio, int recvFlags, long memoryAddress, int length, short data) Returns a newOP_RECVIoUringIoOps.(package private) static IoUringIoOpsnewRecv(int fd, byte flags, short ioPrio, int recvFlags, long memoryAddress, int length, short data, short bid) (package private) static IoUringIoOpsnewRecvmsg(int fd, byte flags, int msgFlags, long memoryAddress, short data) Returns a newOP_RECVMSGIoUringIoOps.(package private) static IoUringIoOpsnewSend(int fd, byte flags, int sendFlags, long memoryAddress, int length, short data) Returns a newOP_SENDIoUringIoOps.(package private) static IoUringIoOpsnewSendmsg(int fd, byte flags, int msgFlags, long address, short data) Returns a newOP_SENDMSGIoUringIoOps.(package private) static IoUringIoOpsnewSendmsgZc(int fd, byte flags, int msgFlags, long address, long data) (package private) static IoUringIoOpsnewSendZc(int fd, long memoryAddress, int length, int flags, long data, int zcFlags) (package private) static IoUringIoOpsnewShutdown(int fd, byte flags, int how, short data) Returns a newOP_SHUTDOWNIoUringIoOps.(package private) static IoUringIoOpsnewSplice(int fd_in, long off_in, int fd_out, long off_out, int nbytes, int splice_flags, short data) Returns a newOP_SPLICEIoUringIoOps.(package private) static IoUringIoOpsnewWrite(int fd, byte flags, int writeFlags, long memoryAddress, int length, short data) Returns a newOP_WRITEIoUringIoOps.(package private) static IoUringIoOpsnewWritev(int fd, byte flags, int writevFlags, long memoryAddress, int length, short data) Returns a newOP_WRITEVIoUringIoOps.(package private) byteopcode()(package private) shorttoString()(package private) longunion1()(package private) longunion2()(package private) intunion3()(package private) shortunion4()(package private) intunion5()(package private) longunion6()(package private) longuserData()
-
Field Details
-
opcode
private final byte opcode -
flags
private final byte flags -
ioPrio
private final short ioPrio -
fd
private final int fd -
union1
private final long union1 -
union2
private final long union2 -
len
private final int len -
union3
private final int union3 -
data
private final long data -
personality
private final short personality -
union4
private final short union4 -
union5
private final int union5 -
union6
private final long union6
-
-
Constructor Details
-
IoUringIoOps
@Deprecated public IoUringIoOps(byte opcode, byte flags, short ioPrio, int fd, long union1, long union2, int len, int union3, short data, short union4, short personality, int union5, long union6) Deprecated.Create a new instance which represents theio_uring_sqestruct. -
IoUringIoOps
public IoUringIoOps(byte opcode, byte flags, short ioPrio, int fd, long union1, long union2, int len, int union3, long data, short union4, short personality, int union5, long union6) Create a new instance which represents theio_uring_sqestruct.struct io_uring_sqe { __u8 opcode; // type of operation for this sqe __u8 flags; // IOSQE_ flags __u16 ioprio; // ioprio for the request __s32 fd; // file descriptor to do IO on union { // union1 __u64 off; // offset into file __u64 addr2; struct { __u32 cmd_op; __u32 __pad1; }; }; union { // union2 __u64 addr; // pointer to buffer or iovecs __u64 splice_off_in; struct { __u32 level; __u32 optname; }; }; __u32 len; // buffer size or number of iovecs union { // union3 __kernel_rwf_t rw_flags; __u32 fsync_flags; __u16 poll_events; // compatibility __u32 poll32_events; // word-reversed for BE __u32 sync_range_flags; __u32 msg_flags; __u32 timeout_flags; __u32 accept_flags; __u32 cancel_flags; __u32 open_flags; __u32 statx_flags; __u32 fadvise_advice; __u32 splice_flags; __u32 rename_flags; __u32 unlink_flags; __u32 hardlink_flags; __u32 xeattr_flags; __u32 msg_ring_flags; __u32 uring_cmd_flags; __u32 waitid_flags; __u32 futex_flags; __u32 install_fd_flags; __u32 nop_flags; }; __u64 user_data; // data to be passed back at completion time // pack this to avoid bogus arm OABI complaints union { // union4 // index into fixed buffers, if used __u16 buf_index; // for grouped buffer selection __u16 buf_group; }__attribute__((packed)); // personality to use, if used __u16 personality; union { // union5 __s32 splice_fd_in; __u32 file_index; __u32 optlen; struct { __u16 addr_len; __u16 __pad3[ 1]; }; }; union { // union6 struct { __u64 addr3; __u64 __pad2[ 1]; }; __u64 optval; // // If the ring is initialized with IORING_SETUP_SQE128, then // this field is used for 80 bytes of arbitrary command data __u8 cmd[ 0]; }; };
-
-
Method Details
-
opcode
byte opcode() -
flags
byte flags() -
ioPrio
short ioPrio() -
fd
int fd() -
union1
long union1() -
union2
long union2() -
len
int len() -
union3
int union3() -
data
Deprecated.useuserData()instead.Returns the data that is passed as part of thisIoUringIoOps.- Returns:
- data.
-
userData
long userData() -
personality
short personality() -
union4
short union4() -
union5
int union5() -
union6
long union6() -
toString
-
newAsyncCancel
Returns a newOP_ASYNC_CANCELIoUringIoOps.- Parameters:
flags- the flags.userData- the user data that identify a previous submittedIoUringIoOpsthat should be cancelled. The value to use here is returned byIoRegistration.submit(IoOps).data- the data- Returns:
- ops.
-
newClose
Returns a newOP_CLOSEIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.data- the data- Returns:
- ops.
-
newPollAdd
Returns a newOP_POLL_ADDIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.mask- the mask.len- the len.data- the data.- Returns:
- ops.
-
newSendmsg
Returns a newOP_SENDMSGIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.msgFlags- the msg flags.data- the data- Returns:
- ops.
-
newConnect
Returns a newOP_CONNECTIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.remoteMemoryAddress- the memory address of the sockaddr_storage.data- the data- Returns:
- ops.
-
newConnect
static IoUringIoOps newConnect(int fd, byte flags, long remoteMemoryAddress, int addrLen, short data) Returns a newOP_CONNECTIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.remoteMemoryAddress- the memory address of the sockaddr_storage.addrLen- then remoteMemory storage length.data- the data- Returns:
- ops.
-
newAccept
static IoUringIoOps newAccept(int fd, byte flags, int acceptFlags, short ioPrio, long acceptedAddressMemoryAddress, long acceptedAddressLengthMemoryAddress, short data) Returns a newOP_ACCEPTIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.acceptFlags- the flags for ACCEPT itselfioPrio- io_prioacceptedAddressMemoryAddress- the memory address of the sockaddr_storage.acceptedAddressLengthMemoryAddress- the memory address of the length that will be updated once a new connection was accepted.data- the data- Returns:
- ops.
-
newWritev
static IoUringIoOps newWritev(int fd, byte flags, int writevFlags, long memoryAddress, int length, short data) Returns a newOP_WRITEVIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.writevFlags- the writev flags.memoryAddress- the memory address of the io_vec array.length- the length of the io_vec array.data- the data- Returns:
- ops.
-
newWrite
static IoUringIoOps newWrite(int fd, byte flags, int writeFlags, long memoryAddress, int length, short data) Returns a newOP_WRITEIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.writeFlags- the write flags.memoryAddress- the memory address of the bufferlength- the length of the buffer.data- the data- Returns:
- ops.
-
newRecv
static IoUringIoOps newRecv(int fd, byte flags, short ioPrio, int recvFlags, long memoryAddress, int length, short data) Returns a newOP_RECVIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.ioPrio- the ioPrio.recvFlags- the recv flags.memoryAddress- the memory address of the bufferlength- the length of the buffer.data- the data- Returns:
- ops.
-
newRecv
static IoUringIoOps newRecv(int fd, byte flags, short ioPrio, int recvFlags, long memoryAddress, int length, short data, short bid) -
newSendZc
static IoUringIoOps newSendZc(int fd, long memoryAddress, int length, int flags, long data, int zcFlags) -
newSendmsgZc
-
newRecvmsg
Returns a newOP_RECVMSGIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.msgFlags- the recvmsg flags.memoryAddress- the memory address of the msghdr structdata- the data- Returns:
- ops.
-
newSend
static IoUringIoOps newSend(int fd, byte flags, int sendFlags, long memoryAddress, int length, short data) Returns a newOP_SENDIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.sendFlags- the send flags.memoryAddress- the memory address of the buffer.length- the length of the buffer.data- the data- Returns:
- ops.
-
newShutdown
Returns a newOP_SHUTDOWNIoUringIoOps.- Parameters:
fd- the filedescriptorflags- the flags.how- how the shutdown will be done.data- the data- Returns:
- ops.
-
newSplice
static IoUringIoOps newSplice(int fd_in, long off_in, int fd_out, long off_out, int nbytes, int splice_flags, short data) Returns a newOP_SPLICEIoUringIoOps.- Parameters:
fd_in- the filedescriptoroff_in- the filedescriptor offsetfd_out- the filedescriptoroff_out- the filedescriptor offsetnbytes- splice bytessplice_flags- the flagdata- the data- Returns:
- ops.
-
IoUringIoOps(byte, byte, short, int, long, long, int, int, long, short, short, int, long)instead.