LLAPI_PROJECT_FGETPRJID(3)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– LLAPI_PROJECT_FGETPRJID πŸ’–

okay so bestie, welcome to llapi_project_fgetprjid from the Lustre Library Functions corner of the universe 🌌 β€” it's a lib function, it lives in the manual, and it's here to read a project that matches a projid out of a specified file and drop it into a buffer. yes girl, we're doing this. ✨


✨ NAME ✨

llapi_project_fgetprjid β€” read the project matching projid from a specified file into a buffer 🫢


🌸 SYNOPSIS 🌸

#include <lustre/lustreapi.h>

int llapi_project_fgetprjid(struct ll_project_handle *hdl,
                            ll_project *lprj, const unsigned int prjid);

πŸ’… DESCRIPTION πŸ’…

So. The llapi_project_fgetnam() function (yes literally that's the name the page says here, don't @ me πŸ™ˆ) reads the contents of the file specified by hdl->lph_file, keeps going until it finds an entry that matches the prjid you handed it, and then fills the remaining space with the information provided in that file.

And like, important: the buffer has to be preallocated already. You don't get to show up empty-handed, this is not that kind of function. πŸŽ€


πŸ”₯ RETURN VALUES πŸ”₯

  • 0 β€” on success, slay πŸ’–
  • -ve β€” an error code on failure, and it sets errno appropriately.

😭 ERRORS 😭

  • -EINVAL β€” if either lprj is NULL, or lprj->lprj_size is invalid. (like, one of those is not valid and it's not gonna pretend otherwise)

πŸ‘‘ AVAILABILITY πŸ‘‘

llapi_project_fgetprjid() is part of the lustre(7) user application interface library since release 2.17.0 ⭐


πŸ¦‹ SEE ALSO πŸ¦‹


no cap: every flag, value, error and reference above is kept exactly as it was β€” I just gave it a vibe check. πŸ’€

this was Lustre User API, dated 2025-07-01, page LLAPI_PROJECT_FGETPRJID(3) β€” mwah, go preallocate that buffer bestie πŸ§šπŸ’œπŸŒΈ

πŸ“¦ where this page comes from