LLAPI_LAYOUT_COMP_USE(3)
β¨ 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
0on success β slay, you moved π - returns
1when 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
-1anderrnois set appropriately. yep, the classic-1+errnocombo π
π 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 π₯
llapi_layout_alloc(3)llapi_layout_comp_del(3)llapi_layout_comp_use_id(3)llapi_layout_file_open(3)llapi_layout(7)lustreapi(7)
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
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms