NVME_INIT_SET_FEATURES_WRITE_PROTECT-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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