nvme_init_m...e_list_ports(9)
β¨ nvme_init_manage_export_nvms_receive_list_ports β¨
okay so bestie, welcome to the libnvme API manual β yes we're doing kernel-adjacent NVMe admin-passthru stuff today and honestly? it's giving iconic. this one's a long one so buckle up π
π NAME π
nvme_init_manage_export_nvms_receive_list_ports β Initialize passthru command for Manage Exported NVM Subsystem Receive</> β List Exported Ports</> (memory-based transports only)
like, the whole point is setting up a passthru command buffer. and psst β memory-based transports only, no cap, don't try this on fabric vibes ok? π
π¦ SYNOPSIS π¦
void nvme_init_manage_export_nvms_receive_list_ports (struct
libnvme_passthru_cmd *cmd , __u16 epid , struct nvme_exported_port_list
*list , __u32 len );
she takes four args and returns void β literally nothing back, she's a do-the-thing function π
πΈ ARGUMENTS πΈ
cmdβ the passthru command you're gonna use. this is the vessel, the main character, the thing she fills in π«Άepidβ a__u16and it means: Return Exported Ports with an Exported Port Identifier</> greater than or equal to this value. so it's a lower bound, like "gimme everything from here up" βlistβ user address where you want the Exported Ports List</> data structure stored, seestruct nvme_exported_port_list. your output lives here πlenβ the allocated length oflist. yes it's__u32. yes you should get it right the first time π
π₯ DESCRIPTION π₯
so what does she actually do? she initializes the passthru command buffer for the Manage Exported NVM Subsystem Receive</> command, with the SEL value set to:
NVME_MANAGE_EXPORT_NVMS_RECV_SEL_LIST_PORTS
that's it, that's the whole job. she sets up the buffer so the command knows it's doing List Ports things. lowkey simple, highkey essential π
bestie reminder: this is the memory-based transports only party π read that line twice, it's literally in the NAME section too
π SEE ALSO π
the manual bequeaths us no SEE ALSO here β she's a standalone queen π
and that's the whole page fr fr. big kisses from the libnvme API manual, October 2026 edition β go init those passthru commands, bestie, and slay π§π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms