nvme_init_m..._port_create(9)

πŸ“¦ version 3.2, in arch rolling

✨ NAME ✨

nvme_init_manage_export_port_create β€” bestie, this is the one that initializes the passthru command for Manage Exported Port - Create πŸ’…

It's a libnvme API manual page, and yes we're getting into it πŸŽ€


🌸 SYNOPSIS 🌸

void nvme_init_manage_export_port_create (struct libnvme_passthru_cmd
*cmd , bool gepid , struct nvme_exported_port_create_data *data );

Like, it returns void and takes three things. That's the whole vibe πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • cmd β€” the passthru command you're actually going to use. Hand it over, she's the main character here πŸ‘‘
  • gepid β€” this is the Generate Exported Port ID (GEPID) flag, and it's a bool so it's literally just on or off, no in-between πŸ™ˆ
    • if it's set, the controller generates the Exported Port ID for you, and it comes back in the CQE result β€” see enum nvme_export_port_create_cqe_dw0 πŸ”₯
    • if it's clear, then the EPID field inside data is what specifies it, so you're on your own for picking it ⭐
  • data β€” the create data buffer. It's a struct nvme_exported_port_create_data, go look at that one for the deets πŸ“

🧚 DESCRIPTION 🧚

So what does this actually do? It initializes the passthru command buffer for the Manage Exported Port command, with the SEL value set to NVME_MANAGE_EXPORT_PORT_SEL_CREATE. That's it, that's the job, and she ate πŸ’…βœ¨

No cap, it's literally just setting up the buffer so the command knows it's a create. The selection value does all the talking 🫢


ngl if you skipped over gepid up in ARGUMENTS, go back bestie 😭 β€” it changes whether the controller picks the Exported Port ID or whether you do, and that matters πŸ’€

🌈 SEE ALSO 🌈

Nothing extra listed here β€” the original page points you at enum nvme_export_port_create_cqe_dw0 and struct nvme_exported_port_create_data inside the ARGUMENTS section, so that's where your cross-references live, iykyk πŸ¦‹


okay that's the page!! this is the libnvme API manual, dated October 2026 β€” mwah, go create some exported ports πŸ’œπŸŽ€

πŸ“¦ where this page comes from