nvme_status_equals(2)
π nvme_status_equals β the libnvme API manual, section 2, bestie π
okay so real talk, this one is a tiny little function but she is doing the most important job: checking whether a status is the exact type-and-value combo you're looking for. lowercase iconic. no cap. π
β¨ NAME β¨
nvme_status_equals β a little helper that checks a status against a type and a value π
π¦ SYNOPSIS π¦
__u32 nvme_status_equals (int status , enum nvme_status_type type ,
unsigned int value );
like look at her. three args, one answer, zero drama. π
πΈ ARGUMENTS πΈ
statusβ the (non-negative) return value that came back from the NVMe API. note the non-negative thing, bestie, that's important, don't be handing her a negative number πtypeβ the status type. which flavour of status are we checking for πvalueβ the status value. the actual number you're matching against β
π₯ RETURN π₯
true if status is of the specified type and value. yes, both. she's an and girlie, not an or girlie. if it matches the type but not the value, that's a no, and if it matches the value but not the type, also a no. slay β¨
lowkey the whole vibe here: pass in the status you got, tell her what type you think it is and what value you think it should be, and she'll tell you true or not. vibe check complete. π«Ά
and that's the whole page bestie, she's short but she's efficient, we stan a concise queen π
this came to you straight from the libnvme API manual, dated July 2026 β go forth and check your statuses, mwah ππ
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms