nvme_mi_adm...detach_ctrls(2)

πŸ’… nvme_mi_adm...detach_ctrls(2) β€” aka the libnvme API manual, bestie ✨

okay so sit down, grab a strawberry πŸ“, because we're talking about a lil function from the libnvme API manual and she is lowkey iconic. no cap.


πŸŽ€ NAME πŸŽ€

nvme_mi_admin_ns_detach_ctrls β€” she detaches a namespace from controllers. that's it, that's the whole job. periodt. πŸ‘‘


✨ SYNOPSIS ✨

int nvme_mi_admin_ns_detach_ctrls (nvme_mi_ctrl_t ctrl , __u32 nsid ,
       struct nvme_ctrl_list *ctrlist );

look at her go. three (3) arguments, one (1) int coming back at you. the way that she just... does that. πŸ˜­πŸ’–


🫢 ARGUMENTS 🫢

  • ctrl β€” the controller you're sending the command to. like, the address you're mailing this whole situation to. πŸ’Œ
  • nsid β€” the Namespace ID you're detaching. the main character in this narrative, fr fr.
  • ctrlist β€” the controller list whose attachment state for nsid is getting modified. yes girl, we are editing the vibes in this list.

🌈 RETURN 🌈

she gives you back the nvme command status if a response was actually received β€” check enum nvme_status_field for what that status is saying, iykyk β€” or she hits you with -1 with errno set otherwise. no in-between, no situationship. it's giving either/or energy. πŸ’€

heads up bestie: -1 means look at errno, that's the only way you're getting the tea 🍡

and that's the whole page, we ate and left no crumbs. πŸ’…

sign-off era: this lil slice of heaven lives in the libnvme API manual, and she was dated July 2026 β€” so yes, she's a future icon, we been knew. 🌟 bye bestie, go detach something (responsibly) πŸ¦‹

πŸ“¦ where this page comes from