LIBNVME_NS_GET_COMMAND_ERROR_COUNT-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… NAME πŸ’…

okay so this is the libnvme API manual, section 9, and the main character is libnvme_ns_get_command_error_count β€” it gets the command_error_count, periodt ✨


🌸 SYNOPSIS 🌸

int libnvme_ns_get_command_error_count (const struct libnvme_ns *p ,
long *command_error_count , long dflt );

πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the struct libnvme_ns instance you're querying, bestie 🫢
  • command_error_count β€” where the value gets stored on success πŸ’–
  • dflt β€” the value that gets stored in command_error_count on failure, lowkey the fallback babe πŸ™ˆ

⭐ RETURN ⭐

  • 0 on success, slay πŸ’…
  • -ENOENT if the attribute does not exist, no cap 😭
  • or a negative errno on failure β€” yeah, that's the vibe check fail πŸ’€

okay that's the whole thing β€” catch you in the libnvme_ns_get_command_err source, October 2026 edition, mwah πŸ’‹

πŸ“¦ where this page comes from