LLAPI_LAYOUT_COMP_USE_ID(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– LLAPI_LAYOUT_COMP_USE_ID(3) πŸ’–

okay so bestie, welcome to the Lustre Library Functions section of the man pages, and today's main character is llapi_layout_comp_use_id β€” she's the one who picks which component in your layout is the active one. no cap. πŸŽ€


✨ NAME ✨

llapi_layout_comp_use_id β€” set currently active component to given ID


🌸 SYNOPSIS 🌸

#include <lustre/lustreapi.h>

int llapi_layout_comp_use_id(struct llapi_layout *layout,
                             uint32_t *comp_id);

like. look at her. two arguments, zero drama. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

So basically, llapi_layout_comp_use_id() sets the currently active component of the layout to the component with the specified comp_id. that's it. that's the whole job. she's focused, she's iconic, she knows what she wants. ✨


πŸ”₯ RETURN VALUES πŸ”₯

  • 0 β€” success, slay, we ate πŸ’…
  • -1 β€” something went wrong, and errno gets set appropriately. not the vibe, but at least you get told why. 😭

πŸ’€ ERRORS πŸ’€

  • ENOENT β€” No such component ID exists. bestie that ID is not real, it's giving ghost. πŸ‘»
  • EINVAL β€” An invalid argument was specified. you passed her something she cannot work with, periodt. πŸ™ˆ

🌈 AVAILABILITY 🌈

llapi_layout_comp_use_id() is part of the lustre(7) user application interface library since release 2.10.0. she's been here since 2.10.0, lowkey a veteran, highkey still serving. πŸ‘‘


🫢 SEE ALSO 🫢


fr fr read the SEE ALSOs, the whole friend group is cute and you're gonna need them. 🌸

Lustre User API Β· 2024-08-27 Β· LLAPI_LAYOUT_COMP_USE_ID(3) β€” that's the source, the date, and the page, all wrapped up with a lil bow πŸŽ€ mwah, bye bestie! πŸ’–

πŸ“¦ where this page comes from