LIBNVMF_REGISTRY_ATTR_EQUAL-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

Hey bestie, welcome to libnvmf_registry_attr_equal(9) from the libnvme API manual, section 9 energy. We’re comparing a registry attribute to a value, and it’s giving very precise. πŸ’…βœ¨

🌸 NAME 🌸

libnvmf_registry_attr_equal β€” compare a registry attribute to a value πŸ’–

✨ SYNOPSIS ✨

int libnvmf_registry_attr_equal (struct libnvme_global_ctx *ctx , const char *device , const char *attr , const char *value );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” libnvme global context; must not be NULL 🫢
  • device β€” kernel device name (e.g. "nvme3") 🌸
  • attr β€” attribute name to compare (e.g. "owner") πŸ¦‹
  • value β€” value to compare against; NULL means "attribute absent" πŸ‘‘

πŸ’– RETURN πŸ’–

  • 0 if attr equals value β€” and yes, a missing attribute equals a NULL value πŸ’€βœ¨
  • >0 if it differs πŸ”₯
  • negative errno on a read error 😭

Final sign-off from the libnvme API manual source/version corner, dated October 2026, for libnvmf_registry_attr_equal(9). Periodt. πŸ’…πŸŽ€

πŸ“¦ where this page comes from