Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
scsi_netlink.h File Reference
#include <linux/netlink.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  scsi_nl_hdr
 
struct  scsi_nl_host_vendor_msg
 

Macros

#define SCSI_TRANSPORT_MSG   NLMSG_MIN_TYPE + 1
 
#define SCSI_NL_GRP_FC_EVENTS   (1<<2) /* Group 2 */
 
#define SCSI_NL_GRP_CNT   3
 
#define SCSI_NL_VERSION   1
 
#define SCSI_NL_MAGIC   0xA1B2
 
#define SCSI_NL_TRANSPORT   0
 
#define SCSI_NL_TRANSPORT_FC   1
 
#define SCSI_NL_MAX_TRANSPORTS   2
 
#define SCSI_NL_SHOST_VENDOR   0x0001
 
#define SCSI_NL_MSGALIGN(len)   (((len) + 7) & ~7)
 
#define SCSI_NL_VID_TYPE_SHIFT   56
 
#define SCSI_NL_VID_TYPE_MASK   ((__u64)0xFF << SCSI_NL_VID_TYPE_SHIFT)
 
#define SCSI_NL_VID_TYPE_PCI   ((__u64)0x01 << SCSI_NL_VID_TYPE_SHIFT)
 
#define SCSI_NL_VID_ID_MASK   (~ SCSI_NL_VID_TYPE_MASK)
 
#define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen)
 

Functions

struct scsi_nl_hdr __attribute__ ((aligned(sizeof(uint64_t))))
 

Variables

uint8_t version
 
uint8_t transport
 
uint16_t magic
 
uint16_t msgtype
 
uint16_t msglen
 
struct scsi_nl_hdr snlh
 
uint64_t vendor_id
 
uint16_t host_no
 
uint16_t vmsg_datalen
 

Macro Definition Documentation

#define INIT_SCSI_NL_HDR (   hdr,
  t,
  mtype,
  mlen 
)
Value:
{ \
(hdr)->transport = t; \
(hdr)->msgtype = mtype; \
(hdr)->msglen = mlen; \
}

Definition at line 113 of file scsi_netlink.h.

#define SCSI_NL_GRP_CNT   3

Definition at line 38 of file scsi_netlink.h.

#define SCSI_NL_GRP_FC_EVENTS   (1<<2) /* Group 2 */

Definition at line 37 of file scsi_netlink.h.

#define SCSI_NL_MAGIC   0xA1B2

Definition at line 54 of file scsi_netlink.h.

#define SCSI_NL_MAX_TRANSPORTS   2

Definition at line 59 of file scsi_netlink.h.

#define SCSI_NL_MSGALIGN (   len)    (((len) + 7) & ~7)

Definition at line 77 of file scsi_netlink.h.

#define SCSI_NL_SHOST_VENDOR   0x0001

Definition at line 67 of file scsi_netlink.h.

#define SCSI_NL_TRANSPORT   0

Definition at line 57 of file scsi_netlink.h.

#define SCSI_NL_TRANSPORT_FC   1

Definition at line 58 of file scsi_netlink.h.

#define SCSI_NL_VERSION   1

Definition at line 51 of file scsi_netlink.h.

#define SCSI_NL_VID_ID_MASK   (~ SCSI_NL_VID_TYPE_MASK)

Definition at line 110 of file scsi_netlink.h.

#define SCSI_NL_VID_TYPE_MASK   ((__u64)0xFF << SCSI_NL_VID_TYPE_SHIFT)

Definition at line 108 of file scsi_netlink.h.

#define SCSI_NL_VID_TYPE_PCI   ((__u64)0x01 << SCSI_NL_VID_TYPE_SHIFT)

Definition at line 109 of file scsi_netlink.h.

#define SCSI_NL_VID_TYPE_SHIFT   56

Definition at line 107 of file scsi_netlink.h.

#define SCSI_TRANSPORT_MSG   NLMSG_MIN_TYPE + 1

Definition at line 33 of file scsi_netlink.h.

Function Documentation

Variable Documentation

uint16_t host_no

Definition at line 98 of file scsi_netlink.h.

uint16_t magic

Definition at line 51 of file scsi_netlink.h.

uint16_t msglen

Definition at line 53 of file scsi_netlink.h.

uint16_t msgtype

Definition at line 52 of file scsi_netlink.h.

Definition at line 96 of file scsi_netlink.h.

Definition at line 50 of file scsi_netlink.h.

uint64_t vendor_id

Definition at line 97 of file scsi_netlink.h.

uint8_t version

Definition at line 49 of file scsi_netlink.h.

uint16_t vmsg_datalen

Definition at line 99 of file scsi_netlink.h.