io\_uring\_sqe\_set\_buf\_group(3) liburing Manual io\_uring\_sqe\_set\_buf\_group(3)

# [NAME](#NAME)

io\_uring\_sqe\_set\_buf\_group - set buf group for submission queue event

# [SYNOPSIS](#SYNOPSIS)

```
#include <liburing.h>
```

```
void io_uring_sqe_set_buf_group(struct io_uring_sqe *sqe,
                                int bgid);
```

# [DESCRIPTION](#DESCRIPTION)

The [**io\_uring\_sqe\_set\_buf\_group**(3)](/man/os/liburing/io_uring_sqe_set_buf_group.3) function sets the associated buf\_group of the *sqe* to *bgid*.

After the caller has requested a submission queue entry (SQE) with [**io\_uring\_get\_sqe**(3)](/man/os/liburing/io_uring_get_sqe.3)**,** they can associate a buf\_group with the SQE used for multishot operations.

# [RETURN VALUE](#RETURN_VALUE)

None

# [SEE ALSO](#SEE_ALSO)

[**io\_uring\_get\_sqe**(3)](/man/os/liburing/io_uring_get_sqe.3), [**io\_uring\_cqe\_set\_data**(3)](/man/os/liburing/io_uring_cqe_set_data.3)

December 9, 2024 liburing-2.9

---

Document: io_uring_sqe_set_buf_group(3) from liburing 2.15-r5 (Chainguard OS)
Source: https://github.com/axboe/liburing.git
