---
name: "nvme_init_set_features_bp_write_protect-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_init_set_features_bp_write_protect-libnvme3"
---

# nvme\_init\_set\_features\_bp\_write\_protect-libnvme3(2)

Initialize passthru command for Boot Partition Write Protection Config

## NAME

nvme\_init\_set\_features\_bp\_write\_protect - Initialize passthru command for Boot Partition Write Protection Config

## SYNOPSIS

**void nvme\_init\_set\_features\_bp\_write\_protect** **(struct libnvme\_passthru\_cmd \*cmd** *,* **bool sv** *,* **\_\_u8 bp0wps** *,* **\_\_u8 bp1wps** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- sv

  Save value across power states

- bp0wps

  Boot Partition 0 Write Protection State (BP0WPS)

- bp1wps

  Boot Partition 1 Write Protection State (BP1WPS)

## DESCRIPTION

Initializes the passthru command buffer for the Set Features command with FID value NVME\_FEAT\_FID\_BP\_WRITE\_PROTECT
