nvmf_reg_read32(9)
π nvmf_reg_read32(9) β the Kernel API Manual, bestie edition π
okay so this is nvmf_reg_read32, a 9-section Kernel API Manual page, and it's literally the NVMe Fabrics "Property Get" API function. yes queen, we're reading a register. π
β¨ NAME β¨
nvmf_reg_read32 β NVMe Fabrics "Property Get" API function.
π¦ SYNOPSIS π¦
int nvmf_reg_read32 (struct nvme_ctrl *ctrl , u32 off , u32 *val );
πΈ ARGUMENTS πΈ
ctrlβ the host NVMe controller instance, iykyk. it's the one maintaining the admin queue that we use to submit the property read command to the allocated NVMe controller resource on the target system. so she's doing the actual work fr fr. πͺoffβ the starting offset value of the targeted property register (peep the fabrics section of the NVMe standard for the deets). basically where in the register we're looking. πvalβ the OUTPUT parameter, and the way that it's an OUTPUT parameter?? so important. after a successful read, this is the thing that will contain the value of the property. she's giving full main character energy β she comes back changed. π«
π₯ DESCRIPTION π₯
Used by the host system to retrieve a 32-bit capsule property value from an NVMe controller on the target system. that's it, that's the vibe. π«Ά
and a lil footnote for the lore girlies: "Capsule property" is a "PCIe register concept" applied to the NVMe fabrics space. not me finding that iconic πβ¨
π RETURN π
0β successful read, slay π> 0β NVMe error status code< 0β Linux errno error code
ngl bestie, please actually check this. three whole ranges of outcomes and only one of them is the happy one. do a vibe check on your return value before you celebrate. π
π SEE ALSO π
Kernel file ./drivers/nvme/host/fabrics.c and also, in no particular order but all iconic:
nvmf_get_address(9)nvmf_reg_read64(9)nvmf_reg_write32(9)nvmf_log_connect_error(9)nvmf_connect_admin_queue(9)nvmf_connect_io_queue(9)nvmf_register_transport(9)nvmf_unregister_transport(9)
like, go read the whole friend group, they're all connected fr fr π§ββοΈβ
and that's the page!! footer says it lives in ./drivers/nvme/host and it's dated October 2026 β so she's from the future AND she's nvmf_reg_read32(9). we stan a timeless icon. periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms