libnvme_path_update_stat(9)

πŸ“¦ version 3.2, in arch rolling

✨ libnvme_path_update_stat(9) ✨

okay so this is a page straight out of the libnvme API manual and honestly? it's a little cutie. it does one job and it does it slayfully. let's get into it πŸ’…


πŸŽ€ NAME πŸŽ€

libnvme_path_update_stat β€” updates the stat of an nvme_path_t object. that's it. that's the whole vibe check. πŸ¦‹


🌸 SYNOPSIS 🌸

int libnvme_path_update_stat (struct libnvme_path *p , bool diffstat );

literally just one function call, no cap. takes two things and gives you back an int. periodt. ✨


πŸ’– ARGUMENTS πŸ’–

  • p β€” your struct libnvme_path object, bestie. the thing you're updating. hand it over 🫢
  • diffstat β€” ok so this one is the main character πŸŽ€ if you set it to true, then the getters hand you back the diff stat. otherwise (so, false), they give you the current absolute stat. choose wisely, iykyk πŸ’€

πŸ‘‘ RETURN πŸ‘‘

  • 0 on success πŸŽ‰ β€” we love a zero, we celebrate a zero
  • a negative error code otherwise 😭 β€” not the negative error code, but that's how you know something went sideways

fr fr that's the whole page. short, sweet, and highkey useful. don't overthink it, just pass the pointer and pick your diffstat 🌈

okay bestie that's a wrap on this icon from the libnvme API manual β€” version vibes as ever, dated October 2026 πŸ’œ mwah, go update some stats πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from