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