smartmontools  SVN Rev 5304
Utility to control and monitor storage systems with "S.M.A.R.T."
Public Types | Public Member Functions | Public Attributes | List of all members
nvme_cmd_in Struct Reference

NVMe pass through input parameters. More...

#include <dev_interface.h>

Collaboration diagram for nvme_cmd_in:
Collaboration graph
[legend]

Public Types

enum  { no_data = 0x0 , data_out = 0x1 , data_in = 0x2 , data_io = 0x3 }
 

Public Member Functions

unsigned char direction () const
 Get I/O direction from opcode. More...
 
void set_data_in (unsigned char op, void *buf, unsigned sz)
 
 nvme_cmd_in ()
 

Public Attributes

unsigned char opcode
 Opcode (CDW0 07:00) More...
 
unsigned nsid
 Namespace ID. More...
 
unsigned cdw10
 
unsigned cdw11
 
unsigned cdw12
 
unsigned cdw13
 
unsigned cdw14
 
unsigned cdw15
 Cmd specific. More...
 
void * buffer
 Pointer to data buffer. More...
 
unsigned size
 Size of buffer. More...
 

Detailed Description

NVMe pass through input parameters.

Definition at line 619 of file dev_interface.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
no_data 
data_out 
data_in 
data_io 

Definition at line 628 of file dev_interface.h.

Constructor & Destructor Documentation

◆ nvme_cmd_in()

nvme_cmd_in::nvme_cmd_in ( )
inline

Definition at line 646 of file dev_interface.h.

Member Function Documentation

◆ direction()

unsigned char nvme_cmd_in::direction ( ) const
inline

Get I/O direction from opcode.

Definition at line 633 of file dev_interface.h.

◆ set_data_in()

void nvme_cmd_in::set_data_in ( unsigned char  op,
void *  buf,
unsigned  sz 
)
inline

Definition at line 637 of file dev_interface.h.

Member Data Documentation

◆ buffer

void* nvme_cmd_in::buffer

Pointer to data buffer.

Definition at line 625 of file dev_interface.h.

◆ cdw10

unsigned nvme_cmd_in::cdw10

Definition at line 623 of file dev_interface.h.

◆ cdw11

unsigned nvme_cmd_in::cdw11

Definition at line 623 of file dev_interface.h.

◆ cdw12

unsigned nvme_cmd_in::cdw12

Definition at line 623 of file dev_interface.h.

◆ cdw13

unsigned nvme_cmd_in::cdw13

Definition at line 623 of file dev_interface.h.

◆ cdw14

unsigned nvme_cmd_in::cdw14

Definition at line 623 of file dev_interface.h.

◆ cdw15

unsigned nvme_cmd_in::cdw15

Cmd specific.

Definition at line 623 of file dev_interface.h.

◆ nsid

unsigned nvme_cmd_in::nsid

Namespace ID.

Definition at line 622 of file dev_interface.h.

◆ opcode

unsigned char nvme_cmd_in::opcode

Opcode (CDW0 07:00)

Definition at line 621 of file dev_interface.h.

◆ size

unsigned nvme_cmd_in::size

Size of buffer.

Definition at line 626 of file dev_interface.h.


The documentation for this struct was generated from the following file: