File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ io_uring_queue_exit \- tear down io_uring submission and completion queues
1818will release all resources acquired and initialized by
1919.BR io_uring_queue_init (3).
2020It first unmaps the memory shared between the application and the kernel and then closes the io_uring file descriptor.
21+
22+ Some accounting is done asynchronously, so memory locked by
23+ .BR io_uring_queue_init (3)
24+ may remain locked for a few milliseconds after this function returns.
2125.SH RETURN VALUE
2226None
2327.SH SEE ALSO
Original file line number Diff line number Diff line change 118118return 0 on success and
119119.BR -errno
120120on failure.
121+ A return value of
122+ .BR -ENOMEM
123+ indicates there is not enough locked memory available to hold the specified
124+ number of entries.
125+ Reduce the number of entries, or call
126+ .BR setrlimit (2)
127+ to increase the maximum number of bytes of memory that may be locked into RAM.
128+ Be aware that calling
129+ .BR io_uring_queue_init (3)
130+ and
131+ .BR io_uring_queue_exit (3)
132+ in a loop will temporarily lock a lot of memory, because
133+ .BR io_uring_queue_exit (3)
134+ does some of its accounting asynchronously.
121135
122136.BR io_uring_queue_init_mem (3)
123137returns the number of bytes used from the provided buffer on success, and
You can’t perform that action at this time.
0 commit comments