nvme_init_ns_mgmt_delete(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– 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