NVME_INIT_SET_FEATURES_WRITE_PROTECT-LIBNVME3(2)
π
nvme_init_set_features_write_protect(9) β libnvme API manual π
okay so bestie, welcome to the libnvme API manual corner of the group chat π«Ά this page is about nvme_init_set_features_write_protect, and yes, the name is long enough to need its own vibe check. It returns void β so no return value to obsess over β and it's literally initializing the passthru command buffer for you β¨
πΈ NAME πΈ
nvme_init_set_features_write_protect β Initialize passthru command for Write Protect
β¨ SYNOPSIS β¨
void nvme_init_set_features_write_protect (struct libnvme_passthru_cmd
*cmd , __u32 nsid , bool sv , enum nvme_feat_nswpcfg_state wps );
π ARGUMENTS π
cmdβ Passthru command to use. That's the passthru command you're working with, bestie πnsidβ Namespace ID. Literally the namespace ID β¨svβ Save value across power states. The save-across-power-states flag, periodt π₯wpsβ Write Protection State. The write protection state value π
π¦ DESCRIPTION π¦
Initializes the passthru command buffer for the Set Features command with FID value NVME_FEAT_FID_WRITE_PROTECT π
That's the whole glow-up: you pass in the passthru command, namespace ID, save-across-power-states value, and write protection state, and it gets the buffer ready for that NVME_FEAT_FID_WRITE_PROTECT Set Features move π
okay bye bestie β this came from the libnvme API manual, dated October 2026, and the footer's lil truncated-name cameo is nvme_init_set_features_writnvme_init_se...rite_protect(9) ππ
π¦ 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