nvme_init_m...e_list_ports(9)

πŸ“¦ version 3.2, in arch rolling

✨ 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 __u16 and 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, see struct nvme_exported_port_list. your output lives here πŸŽ€
  • len β€” the allocated length of list. 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