nvme_init_m..._port_create(9)
β¨ 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 aboolso 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
EPIDfield insidedatais what specifies it, so you're on your own for picking it β
- if it's set, the controller generates the Exported Port ID for you, and it comes back in the CQE result β see
dataβ the create data buffer. It's astruct 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
- 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