---
name: "io_uring_sqe_set_buf_group"
section: "3"
platform: "linux"
package: "liburing"
version: "2.15-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/io_uring_sqe_set_buf_group"
---

# io\_uring\_sqe\_set\_buf\_group(3)

set buf group for submission queue event

## NAME

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

## SYNOPSIS

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

**void io\_uring\_sqe\_set\_buf\_group(struct io\_uring\_sqe \****sqe***,**                                 **int** *bgid***);**

## DESCRIPTION

The [**io\_uring\_sqe\_set\_buf\_group**(3)](/io_uring_sqe_set_buf_group/3.md) 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)](/io_uring_get_sqe/3.md)**,** they can associate a buf\_group with the SQE used for multishot operations.

## RETURN VALUE

None

## SEE ALSO

[**io\_uring\_get\_sqe**(3)](/io_uring_get_sqe/3.md), **io\_uring\_cqe\_set\_data**(3)
