LLAPI_LAYOUT_COMP_USE(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ LLAPI_LAYOUT_COMP_USE(3) ✨

okay bestie so we're deep in the Lustre Library Functions section of the manual and this one is chef's kiss β€” it's all about moving your cursor around inside a layout like it's a lil carousel of components 🎠


πŸ’– NAME πŸ’–

llapi_layout_comp_use β€” change current component to relative position

like, it slides the "you are here" sticker on your layout to a different component, and it does it relatively, so it depends on where you already are. iykyk 🫢


🌸 SYNOPSIS 🌸

#include <lustre/lustreapi.h>

int llapi_layout_comp_use(struct llapi_layout *layout,
                          enum llapi_layout_comp_use *pos);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically it changes the currently active component of layout to the relative position given by pos. think of layout as your lil component lineup and pos as the vibe direction you wanna scoot in πŸ’…

these are the possible values for pos, and yes you have to pick one of them, no freestyling:

  • LLAPI_LAYOUT_COMP_USE_FIRST β€” the first component of the layout. jump to the front of the line, main character energy πŸ‘‘
  • LLAPI_LAYOUT_COMP_USE_LAST β€” the last component of the layout. end of the queue, but make it iconic 🌈
  • LLAPI_LAYOUT_COMP_USE_NEXT β€” the next component after the current one. one lil step forward πŸšΆβ™€οΈ
  • LLAPI_LAYOUT_COMP_USE_PREV β€” the previous component before the current one. one lil step back, no shame πŸ™ˆ

⭐ RETURN VALUES ⭐

  • returns 0 on success β€” slay, you moved πŸ’–
  • returns 1 when there is no next or previous component β€” like bestie, you're already at the edge, there's nothing there 😭
  • otherwise, if an error occurred, it returns -1 and errno is set appropriately. yep, the classic -1 + errno combo πŸ’€

πŸ’œ ERRORS πŸ’œ

  • EINVAL β€” an invalid argument was specified. you handed it something it cannot work with, and it said absolutely not 🚫
  • ENOENT β€” no such component ID exists. that component? never heard of her. doesn't exist πŸ•΅οΈβ™€οΈ

πŸŽ€ AVAILABILITY πŸŽ€

llapi_layout_comp_use() is part of the lustre(7) user application interface library since release 2.10.0 β€” so she's been around since 2.10.0 and she's still serving ✨


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie, no cap 🫢 this was Lustre User API, dated 2024-08-27, and it lives at the very bottom of the manpage as LLAPI_LAYOUT_COMP_USE(3). go move some components around, you got this πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from