nvme\_init\_set\_features\_bp\_write\_protect(9) libnvme API manual nvme\_init\_set\_features\_bp\_write\_protect(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[cmd](#cmd)

Passthru command to use

[sv](#sv)

Save value across power states

[bp0wps](#bp0wps)

Boot Partition 0 Write Protection State (BP0WPS)

[bp1wps](#bp1wps)

Boot Partition 1 Write Protection State (BP1WPS)

# [DESCRIPTION](#DESCRIPTION)

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

nvme\_init\_set\_features\_bp\_write\_protect October 2026

---

Document: nvme_init_set_features_bp_write_protect-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
