OS Manuals

llapi_layout_comp_use_id(3)

llapi_layout_comp_use_id - set currently active component to given ID

LLAPI_LAYOUT_COMP_USE_ID(3) Lustre Library Functions LLAPI_LAYOUT_COMP_USE_ID(3)

llapi_layout_comp_use_id - set currently active component to given ID

#include <lustre/lustreapi.h>
int llapi_layout_comp_use_id(struct llapi_layout *layout,
                             uint32_t *comp_id);

Sets currently active component of layout to the component with specified comp_id.

Return 0 on success. Otherwise, if an error occurred -1 is returned and errno is set appropriately.

No such component ID exists.
An invalid argument was specified.

llapi_layout_comp_use_id() is part of the lustre(7) user application interface library since release 2.10.0

llapi_layout_alloc(3), llapi_layout_comp_del(3), llapi_layout_comp_id_get(3), llapi_layout_comp_use(3), llapi_layout_file_open(3), llapi_layout(7), lustreapi(7)

2024-08-27 Lustre User API

lustre 2.17.60-r0 · enterprise-packages · ingested 2026-10-22