smartmontools SVN Rev 5640
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.
 
void set_data_in (unsigned char op, void *buf, unsigned sz)
 
 nvme_cmd_in ()
 

Public Attributes

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

Detailed Description

NVMe pass through input parameters.

Definition at line 655 of file dev_interface.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
no_data 
data_out 
data_in 
data_io 

Definition at line 664 of file dev_interface.h.

Constructor & Destructor Documentation

◆ nvme_cmd_in()

nvme_cmd_in::nvme_cmd_in ( )
inline

Definition at line 682 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 669 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 673 of file dev_interface.h.

Member Data Documentation

◆ buffer

void* nvme_cmd_in::buffer

Pointer to data buffer.

Definition at line 661 of file dev_interface.h.

◆ cdw10

unsigned nvme_cmd_in::cdw10

Definition at line 659 of file dev_interface.h.

◆ cdw11

unsigned nvme_cmd_in::cdw11

Definition at line 659 of file dev_interface.h.

◆ cdw12

unsigned nvme_cmd_in::cdw12

Definition at line 659 of file dev_interface.h.

◆ cdw13

unsigned nvme_cmd_in::cdw13

Definition at line 659 of file dev_interface.h.

◆ cdw14

unsigned nvme_cmd_in::cdw14

Definition at line 659 of file dev_interface.h.

◆ cdw15

unsigned nvme_cmd_in::cdw15

Cmd specific.

Definition at line 659 of file dev_interface.h.

◆ nsid

unsigned nvme_cmd_in::nsid

Namespace ID.

Definition at line 658 of file dev_interface.h.

◆ opcode

unsigned char nvme_cmd_in::opcode

Opcode (CDW0 07:00)

Definition at line 657 of file dev_interface.h.

◆ size

unsigned nvme_cmd_in::size

Size of buffer.

Definition at line 662 of file dev_interface.h.


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