LLAPI\_CHANGELOG\_IN\_BUF(3) Lustre Library Functions LLAPI\_CHANGELOG\_IN\_BUF(3)

# [NAME](#NAME)

llapi\_changelog\_in\_buf - Check if there is changelog records in the internal buffer

# [SYNOPSIS](#SYNOPSIS)

```
#include <lustre/lustreapi.h>
```

```
int llapi_changelog_in_buf(void *priv);
```

# [DESCRIPTION](#DESCRIPTION)

The function **llapi\_changelog\_in\_buf()** checks if there are still changelog records in the read buffer for the *priv* instance.

**llapi\_changelog\_in\_buf()** with **llapi\_changelog\_recv()** can be used to dequeue all the changelog records still in the read buffer.

# [RETURN VALUES](#RETURN_VALUES)

Returns 1 if changelogs records are present in the internal read buffer, otherwise return 0.

# [AVAILABILITY](#AVAILABILITY)

**llapi\_changelog\_in\_buf** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.13.0

# [SEE ALSO](#SEE_ALSO)

[**llapi\_changelog\_clear**(3)](/man/enterprise-packages/lustre/llapi_changelog_clear.3), [**llapi\_changelog\_get\_fd**(3)](/man/enterprise-packages/lustre/llapi_changelog_get_fd.3), [**llapi\_changelog\_recv**(3)](/man/enterprise-packages/lustre/llapi_changelog_recv.3), [**llapi\_changelog\_start**(3)](/man/enterprise-packages/lustre/llapi_changelog_start.3), [**llapi\_changelog\_start\_user**(3)](/man/enterprise-packages/lustre/llapi_changelog_start_user.3), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2024-08-22 Lustre User API

---

Document: llapi_changelog_in_buf(3) from lustre 2.17.59-r1 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
