Go to the documentation of this file.
22 #ifndef SCSI_NETLINK_H
23 #define SCSI_NETLINK_H
25 #include <linux/netlink.h>
26 #include <linux/types.h>
33 #define SCSI_TRANSPORT_MSG NLMSG_MIN_TYPE + 1
37 #define SCSI_NL_GRP_FC_EVENTS (1<<2)
38 #define SCSI_NL_GRP_CNT 3
51 #define SCSI_NL_VERSION 1
54 #define SCSI_NL_MAGIC 0xA1B2
57 #define SCSI_NL_TRANSPORT 0
58 #define SCSI_NL_TRANSPORT_FC 1
59 #define SCSI_NL_MAX_TRANSPORTS 2
67 #define SCSI_NL_SHOST_VENDOR 0x0001
77 #define SCSI_NL_MSGALIGN(len) (((len) + 7) & ~7)
107 #define SCSI_NL_VID_TYPE_SHIFT 56
108 #define SCSI_NL_VID_TYPE_MASK ((__u64)0xFF << SCSI_NL_VID_TYPE_SHIFT)
109 #define SCSI_NL_VID_TYPE_PCI ((__u64)0x01 << SCSI_NL_VID_TYPE_SHIFT)
110 #define SCSI_NL_VID_ID_MASK (~ SCSI_NL_VID_TYPE_MASK)
113 #define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \
115 (hdr)->version = SCSI_NL_VERSION; \
116 (hdr)->transport = t; \
117 (hdr)->magic = SCSI_NL_MAGIC; \
118 (hdr)->msgtype = mtype; \
119 (hdr)->msglen = mlen; \