libnvme_path_update_stat(9)
β¨ 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β yourstruct libnvme_pathobject, bestie. the thing you're updating. hand it over π«Άdiffstatβ ok so this one is the main character π if you set it totrue, then the getters hand you back the diff stat. otherwise (so,false), they give you the current absolute stat. choose wisely, iykyk π
π RETURN π
0on 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
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms