nvme_init_write(9)
nvme_init_write(9)
okay so this page comes from the libnvme API manual, and it's giving βsmall function, very specific jobβ energy. We're talking about nvme_init_write(9), bestie, and we are not skipping a single argument. π
β¨
π NAME π
nvme_init_write β Initialize passthru command for a user write command. That's the whole assignment: it does the setup for a user write command's passthru command. π
β¨ SYNOPSIS β¨
Here's the signature, exactly as it is β no edits, no cap:
void nvme_init_write (struct libnvme_passthru_cmd *cmd , __u32 nsid ,
__u64 slba , __u16 nlb , __u16 control , __u16 dspec , __u8 dsm , __u8
cev , void *data , __u32 data_len , void *metadata , __u32 metadata_len
);
π ARGUMENTS π
Every arg, in order, zero skips:
cmdβ the passthru command you're using. This is the thing getting set up. π«Άnsidβ Namespace ID, periodt.slbaβ Starting logical block.nlbβ Number of logical blocks, and yes bestie, it's 0-based. Don't forget the 0.controlβ Upper 16 bits ofcdw12. That's the exact slice. β¨dspecβ Directive specific value.dsmβ Data set management attributes, specifically for the CETYPE-is-zero situation; see enumnvme_io_dsm_flags. πcevβ Command Extension Value, for the CETYPE-is-non-zero situation.dataβ Pointer to user address of the data buffer.data_lenβ Length of user buffer,data, in bytes.metadataβ Pointer to user address of the metadata buffer.metadata_lenβ Length of user buffer,metadata, in bytes.
π¦ DESCRIPTION π¦
Initializes the passthru command buffer for the Write command. That's it, that's the whole job β it sets up the passthru command buffer for the Write command, and then it's done. No extra lore, no secret side quests. π
Source/version and date check, because we do not skip footers: this page is from the libnvme API manual, dated October 2026, and the function/page name is nvme_init_write / nvme_init_write(9). Bye bestie, go init that write! π«Άππ
π¦ 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