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

# [NAME](#NAME)

nvme\_init\_get\_features\_write\_protect - Initialize passthru command for Get Features - Write Protect

# [SYNOPSIS](#SYNOPSIS)

**void nvme\_init\_get\_features\_write\_protect** **(struct libnvme\_passthru\_cmd \*cmd ,** **\_\_u32 nsid ,** **enum nvme\_get\_features\_sel sel );**

# [ARGUMENTS](#ARGUMENTS)

[cmd](#cmd)

Passthru command to use

[nsid](#nsid)

Namespace ID

[sel](#sel)

Select which type of attribute to return, see *enum nvme\_get\_features\_sel*

# [DESCRIPTION](#DESCRIPTION)

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

nvme\_init\_get\_features\_write\_protect October 2026

---

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