nvme_init_w...ncorrectable(9)
π
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 ofcdw12. 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
- 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