1io_uring_prep_shutdown(3) liburing Manual io_uring_prep_shutdown(3)
2
3
4
6 io_uring_prep_shutdown - prepare a shutdown request
7
9 #include <sys/socket.h>
10 #include <liburing.h>
11
12 void io_uring_prep_shutdown(struct io_uring_sqe *sqe,
13 int sockfd,
14 int how);
15
17 The io_uring_prep_shutdown(3) function prepares a shutdown request. The
18 submission queue entry sqe is setup to use the file descriptor sockfd
19 that should be shutdown with the how argument.
20
21 This function prepares an async shutdown(2) request. See that man page
22 for details.
23
24
26 None
27
29 The CQE res field will contain the result of the operation. See the re‐
30 lated man page for details on possible values. Note that where synchro‐
31 nous system calls will return -1 on failure and set errno to the actual
32 error value, io_uring never uses errno. Instead it returns the negated
33 errno directly in the CQE res field.
34
36 io_uring_get_sqe(3), io_uring_submit(3), shutdown(2)
37
38
39
40liburing-2.2 March 12, 2022 io_uring_prep_shutdown(3)