LLAPI\_CHANGELOG\_GET\_FD(3) Lustre Library Functions LLAPI\_CHANGELOG\_GET\_FD(3)

# [NAME](#NAME)

llapi\_changelog\_get\_fd - Return the file descriptor of the changelog device

# [SYNOPSIS](#SYNOPSIS)

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

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

# [DESCRIPTION](#DESCRIPTION)

The function **llapi\_changelog\_get\_fd()** returns the file descriptor of changelog char device for the instance *priv*.

This can be used to call **poll()** on the file descriptor to get events on the changelog device.

# [RETURN VALUES](#RETURN_VALUES)

Return the file descriptor on success or a negative errno value on failure.

# [ERRORS](#ERRORS)

-EINVAL

*priv* argument is invalid.

# [AVAILABILITY](#AVAILABILITY)

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

# [SEE ALSO](#SEE_ALSO)

[**poll**(2)](/man/enterprise-packages/lustre/poll.2), [**llapi\_changelog\_clear**(3)](/man/enterprise-packages/lustre/llapi_changelog_clear.3), [**llapi\_changelog\_in\_buf**(3)](/man/enterprise-packages/lustre/llapi_changelog_in_buf.3), [**llapi\_changelog\_recv**(3)](/man/enterprise-packages/lustre/llapi_changelog_recv.3), [**llapi\_changelog\_register**(3)](/man/enterprise-packages/lustre/llapi_changelog_register.3), [**llapi\_changelog\_start**(3)](/man/enterprise-packages/lustre/llapi_changelog_start.3), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2026-09-12 Lustre User API

---

Document: llapi_changelog_get_fd(3) from lustre 2.17.60-r0 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
