nvme_init_write(9)

πŸ“¦ version 3.2, in arch rolling

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 of cdw12. That's the exact slice. ✨
  • dspec β€” Directive specific value.
  • dsm β€” Data set management attributes, specifically for the CETYPE-is-zero situation; see enum nvme_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