nvme_get_property(2)

✨ nvme_get_property(2) ✨

okay bestie, welcome to the libnvme API manual πŸ’– you're in the funcs section now, section 2, and we're gonna talk about grabbing yourself a controller property like it's the last boba in the shop πŸ§‹


πŸŽ€ NAME πŸŽ€

nvme_get_property β€” get a controller property πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int nvme_get_property (struct nvme_get_property_args *args );

🌸 ARGUMENTS 🌸

  • args β€” a struct nvme_get_propert_args argument structure. yes literally that, that's the spelling in the source, don't come for me πŸ’…

✨ DESCRIPTION ✨

So here's the tea 🍡 this one is an NVMe-over-Fabrics specific command, which means it is not applicable to PCIe. like, not even a little. don't try it, it's not giving PCIe energy πŸ™ˆ

And the way these properties work? they align to the PCI MMIO controller registers 🎯 so if you know those registers, you already know the vibe. iykyk ✨


πŸ’œ RETURN πŸ’œ

You get the nvme command status if a response was received β€” peep enum nvme_status_field for the full rundown πŸ‘€

Otherwise? you get -1 and errno gets set. classic. not me getting a -1 😭


and that's the whole page, bestie!! slay πŸ’…βœ¨

this cutie was brought to you by 🫢 the libnvme API manual, version date July 2026, and it's the nvme_get_property(2) page fr fr. go get those properties πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from