This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
Queues (but does not submit) an SQE to add a link timeout operation. Returns a pointer to the SQE.
You need to set linux.IOSQE_IO_LINK to flags of the target operation and then call this method right after the target operation. See https://lwn.net/Articles/803932/ for detail.
If the dependent request finishes before the linked timeout, the timeout is canceled. If the timeout finishes before the dependent request, the dependent request will be canceled.
The completion event result of the link_timeout will be -ETIME if the timeout finishes before the dependent request (in this case, the completion event result of the dependent request will be -ECANCELED), or -EALREADY if the dependent request finishes before the linked timeout.
Queues (but does not submit) an SQE to add a link timeout operation. Returns a pointer to the SQE.
You need to set linux.IOSQE_IO_LINK to flags of the target operation and then call this method right after the target operation. See https://lwn.net/Articles/803932/ for detail.
If the dependent request finishes before the linked timeout, the timeout is canceled. If the timeout finishes before the dependent request, the dependent request will be canceled.
The completion event result of the link_timeout will be
-ETIMEif the timeout finishes before the dependent request (in this case, the completion event result of the dependent request will be-ECANCELED), or-EALREADYif the dependent request finishes before the linked timeout.