nvme_init_ns_mgmt_delete(9)
π nvme_init_ns_mgmt_delete(9) π
okay so this is a page straight out of the libnvme API manual and bestie, it's a little one but it's important β it's giving "small function, big main character energy" β¨
πΈ NAME πΈ
nvme_init_ns_mgmt_delete β the glow-up ritual that initializes a passthru command to delete a non attached namespace ποΈβ¨
π SYNOPSIS π
void nvme_init_ns_mgmt_delete (struct libnvme_passthru_cmd *cmd , __u32 nsid );
that's it. two args, one void return, zero drama. periodt π
π¦ ARGUMENTS π¦
cmdβ the passthru command you're gonna use π«Ά this is the buffer getting set up, so hand it over and let the function do its thing.nsidβ the namespace identifier you wanna delete π literally just the namespace you're coming for.
β DESCRIPTION β
So here's the tea β β this function initializes the passthru command buffer for the Namespace Management - Delete command, aka NVME_NS_MGMT_SEL_DELETE π₯ no cap, that's the selector it's using.
And the way that it works? The command uses the nsid you passed in as the target NSID π― so like, whatever namespace identifier you hand over, that's the one the command is pointed at. iykyk π
π§ a lil sign-off π§
this iconic little page comes from the libnvme API manual, dated October 2026 π mwah, go delete some unattached namespaces responsibly bestie ππ¦πΈ
π¦ 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