On May 17 17:52, Changqi Lu wrote: > Add constants for the NVMe persistent command protocol. > The constants include the reservation command opcode and > reservation type values defined in section 7 of the NVMe > 2.0 specification. > > Signed-off-by: Changqi Lu <luchangqi....@bytedance.com> > Signed-off-by: zhenwei pi <pizhen...@bytedance.com> > --- > include/block/nvme.h | 61 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 61 insertions(+) > > diff --git a/include/block/nvme.h b/include/block/nvme.h > index bb231d0b9a..84e2b2e401 100644 > --- a/include/block/nvme.h > +++ b/include/block/nvme.h > @@ -633,6 +633,10 @@ enum NvmeIoCommands { > NVME_CMD_WRITE_ZEROES = 0x08, > NVME_CMD_DSM = 0x09, > NVME_CMD_VERIFY = 0x0c, > + NVME_CMD_RESV_REGISTER = 0x0d, > + NVME_CMD_RESV_REPORT = 0x0e, > + NVME_CMD_RESV_ACQUIRE = 0x11, > + NVME_CMD_RESV_RELEASE = 0x15, > NVME_CMD_IO_MGMT_RECV = 0x12, > NVME_CMD_COPY = 0x19, > NVME_CMD_IO_MGMT_SEND = 0x1d, > @@ -641,6 +645,63 @@ enum NvmeIoCommands { > NVME_CMD_ZONE_APPEND = 0x7d, > }; > > +typedef enum { > + NVME_RESV_REGISTER_ACTION_REGISTER = 0x00, > + NVME_RESV_REGISTER_ACTION_UNREGISTER = 0x01, > + NVME_RESV_REGISTER_ACTION_REPLACE = 0x02, > +} NVME_RESV_REGISTER_ACTION;
Existing style would name this `NvmeReservationRegisterAction`.
signature.asc
Description: PGP signature