nvme_init_w...ncorrectable(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… nvme_init_write_uncorrectable β€” from the libnvme API manual, bestie

Okay so picture this: you're out here in the libnvme API manual, page nine, and you've found nvme_init_write_uncorrectable. Say that five times fast, I dare you 😭. It's the little helper that gets your passthru command all dressed and ready for a Write Uncorrectable command. No cap, that's the whole gig.


✨ SYNOPSIS ✨

void nvme_init_write_uncorrectable (struct libnvme_passthru_cmd *cmd ,
   __u32 nsid , __u64 slba , __u16 nlb , __u16 control , __u16 dspec );

She returns void, so don't go looking for a return value, there isn't one, periodt. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

Six little besties walk into a function. Let's meet them πŸ’–

  • cmd β€” the passthru command you're gonna use. This is the one getting initialized, so hand her over.
  • nsid β€” the Namespace ID. Which namespace are we talking to? That's __u32, iconic.
  • slba β€” starting logical block. Where the party begins πŸŽ‰ (__u64).
  • nlb β€” Number of logical blocks, and yes bestie it's 0-based, don't forget that part or you'll be off by one and crying about it 😭.
  • control β€” the upper 16 bits of cdw12. Just the upper half, highkey important 🧚
  • dspec β€” the directive specific value. Slay, __u16.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does she actually do? She initializes the passthru command buffer for the Write Uncorrectable command. That's it, that's the vibe. Your cmd struct comes out the other side ready to go, main character energy πŸ’…βœ¨


🌸 NOTE 🌸

Heads up bestie: this command transfers no data or metadata. Literally none. Zero. Not a crumb. So don't go attaching buffers or expecting payloads, okay? πŸ™ˆ

That's the whole page, you ate that πŸ”₯. Source and version tease: this came from the libnvme API manual, dated October 2026 β€” so jot that down in your notes app, mwah πŸ’œπŸ‘‘β­

πŸ“¦ where this page comes from