nvme_init_m..._controllers(9)
π nvme_init_manage_export_nvms_send_associate_controllers β¨
okay bestie, so this is a page from the libnvme API manual, and the function we're stanning is nvme_init_manage_export_nvms_send_associate_controllers π (yes it's a long name, yes it ate, we move).
πΈ NAME πΈ
nvme_init_manage_export_nvms_send_associate_controllers β Initialize passthru command for Manage Exported NVM Subsystem Send - Associate Controllers (memory-based transports only, iykyk π)
π¦ SYNOPSIS π¦
void nvme_init_manage_export_nvms_send_associate_controllers (struct
libnvme_passthru_cmd *cmd , __u16 esubid , struct
nvme_exported_ctrl_assoc_data *data , __u32 len );
like, that's the whole signature, no cap π
β ARGUMENTS β
cmdβ the passthru command you're gonna use, bestie. this is the buffer we're setting up β¨esubidβ the Exported NVM Subsystem Identifier (ESUBID) of the target Exported NVM Subsystem π that's a__u16, don't @ medataβ the Associate Controllers data buffer. literally seestruct nvme_exported_ctrl_assoc_dataπ«Άlenβ length ofdata. it's a__u32, periodt π
π DESCRIPTION π
so what this icon does is initialize the passthru command buffer for the Manage Exported NVM Subsystem Send command π β and specifically with the SEL value set to:
NVME_MANAGE_EXPORT_NVMS_SEND_SEL_ASSOCIATE_CONTROLLERS
that's the whole vibe π. you hand it a command struct, an ESUBID, your data buffer, and a length, and it does the buffer setup so the command is ready to go. memory-based transports only tho β don't come for me if you're on something else π
fr fr the "memory-based transports only" part isn't a suggestion, it's the whole scope of this function. lowkey important π
π§ little sign-off π§
that's the whole page, bestie β courtesy of the libnvme API manual, dated October ... (the footer got a little cut off, the way that it does π), and yes the footer is out here spelling the function name as nvme_init_manage_export_nvms_send_associate_controllers in all its glorious 51-character entirety. 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