LLAPI_CHANGELOG_GET_FD(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ LLAPI_CHANGELOG_GET_FD ✨

okay so bestie, this is a page from the User manual, section 3 β€” aka the library functions zone πŸ’… it's called llapi_changelog_get_fd, and literally all it does is hand you a file descriptor. tiny function, big main character energy πŸ‘‘


🌸 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 πŸ’–

so the function llapi_changelog_get_fd() returns the file descriptor of the changelog char device for the instance priv. that's it. that's the whole vibe 🌈

and the way that's actually useful?? you can pass that file descriptor into poll() to get events on the changelog device. yes bestie, real event-driven behavior, we love to see it ✨


πŸ’« RETURN VALUES πŸ’«

  • on success β†’ it returns the file descriptor 🫢
  • on failure β†’ it returns a negative errno value 😭

πŸ‘‘ ERRORS πŸ‘‘

  • -EINVAL β€” your priv argument is invalid, no cap πŸ’€

🧚 AVAILABILITY 🧚

llapi_changelog_get_fd is part of the lustre(7) user application interface library, and it's been there since release 2.4.0 ⭐ iconic, honestly.


πŸ“ SEE ALSO πŸ“


bestie if priv ain't valid you're getting -EINVAL and that's just the rules πŸ™ˆ always check your args, fr fr πŸ’œ

Lustre 🌸 2024-08-22 🌸 that's the source, the version, and the date from the footer β€” mwah, go slay your changelog events πŸ’…βœ¨

πŸ“¦ where this page comes from