prepLinkTimeout

Prepares linked timeout operation.

This request must be linked with another request through IOSQE_IO_LINK which is described below. Unlike IORING_OP_TIMEOUT, IORING_OP_LINK_TIMEOUT acts on the linked request, not the completion queue. The format of the command is otherwise like IORING_OP_TIMEOUT, except there's no completion event count as it's tied to a specific request. If used, the timeout specified in the command will cancel the linked command, unless the linked command completes before the timeout. The timeout will complete with -ETIME if the timer expired and the linked request was attempted cancelled, or -ECANCELED if the timer got cancelled because of completion of the linked request.

Note: Available from Linux 5.5

nothrow @nogc
void
prepLinkTimeout
(
ref SubmissionEntry entry
,
ref KernelTimespec time
,
TimeoutFlags flags = TimeoutFlags.REL
)

Parameters

entry
Type: SubmissionEntry

SubmissionEntry to prepare

time
Type: KernelTimespec

time specification

flags
Type: TimeoutFlags

define if it's a relative or absolute time

Meta