llapi_changelog_get_fd(3)

NAME
llapi_changelog_get_fd - Return the file descriptor of the changelog device

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_changelog_get_fd(void *priv);

DESCRIPTION

The function llapi_changelog_get_fd() return 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 the file descriptor on success or a negative errno value on failure.

ERRORS

-EINVAL
    priv argument is invalid.

SEE ALSO
poll(2), llapi_changelog_clear(3) llapi_changelog_in_buf(3), llapi_changelog_recv(3), llapi_changelog_start(3), lustreapi(7)