Reference

nvme_init_get_features_write_protect-libnvme3(2)

Initialize passthru command for Get Features - Write Protect

NAME

nvme_init_get_features_write_protect - Initialize passthru command for Get Features - Write Protect

SYNOPSIS

void nvme_init_get_features_write_protect (struct libnvme_passthru_cmd *cmd , __u32 nsid , enum nvme_get_features_sel sel );

ARGUMENTS

cmd

Passthru command to use

nsid

Namespace ID

sel

Select which type of attribute to return, see enum nvme_get_features_sel

DESCRIPTION

Initializes the passthru command buffer for the Get Features command with FID value NVME_FEAT_FID_WRITE_PROTECT