1io_uring_prep_remove_buffers(3) liburing Manualio_uring_prep_remove_buffers(3)
2
3
4
6 io_uring_prep_remove_buffers - prepare a remove buffers request
7
9 #include <liburing.h>
10
11 void io_uring_prep_remove_buffers(struct io_uring_sqe *sqe,
12 int nr,
13 int bgid);
14
16 The io_uring_prep_remove_buffers(3) function prepares a request for re‐
17 moving previously supplied buffers. The submission queue entry sqe is
18 setup to remove nr number of buffers from the buffer group ID indicated
19 by bgid.
20
21
23 None
24
26 These are the errors that are reported in the CQE res field. On suc‐
27 cess, res will contain the number of successfully removed buffers. On
28 error, the following errors can occur.
29
30 -ENOMEM
31 The kernel was unable to allocate memory for the request.
32
33 -EINVAL
34 One of the fields set in the SQE was invalid.
35
36 -ENOENT
37 No buffers exist at the specified bgid buffer group ID.
38
40 io_uring_get_sqe(3), io_uring_submit(3), io_uring_register(2), io_ur‐
41 ing_prep_provide_buffers(3)
42
43
44
45liburing-2.2 March 13, 2022 io_uring_prep_remove_buffers(3)