Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
msgr.h File Reference

Go to the source code of this file.

Data Structures

struct  ceph_entity_name
 
struct  ceph_entity_addr
 
struct  ceph_entity_inst
 
struct  ceph_msg_connect
 
struct  ceph_msg_connect_reply
 
struct  ceph_msg_header_old
 
struct  ceph_msg_header
 
struct  ceph_msg_footer
 

Macros

#define CEPH_MON_PORT   6789 /* default monitor port */
 
#define CEPH_PORT_FIRST   6789
 
#define CEPH_PORT_START   6800 /* non-monitors start here */
 
#define CEPH_PORT_LAST   6900
 
#define CEPH_BANNER   "ceph v027"
 
#define CEPH_BANNER_MAX_LEN   30
 
#define CEPH_ENTITY_TYPE_MON   0x01
 
#define CEPH_ENTITY_TYPE_MDS   0x02
 
#define CEPH_ENTITY_TYPE_OSD   0x04
 
#define CEPH_ENTITY_TYPE_CLIENT   0x08
 
#define CEPH_ENTITY_TYPE_AUTH   0x20
 
#define CEPH_ENTITY_TYPE_ANY   0xFF
 
#define CEPH_MSGR_TAG_READY   1 /* server->client: ready for messages */
 
#define CEPH_MSGR_TAG_RESETSESSION   2 /* server->client: reset, try again */
 
#define CEPH_MSGR_TAG_WAIT
 
#define CEPH_MSGR_TAG_RETRY_SESSION
 
#define CEPH_MSGR_TAG_RETRY_GLOBAL
 
#define CEPH_MSGR_TAG_CLOSE   6 /* closing pipe */
 
#define CEPH_MSGR_TAG_MSG   7 /* message */
 
#define CEPH_MSGR_TAG_ACK   8 /* message ack */
 
#define CEPH_MSGR_TAG_KEEPALIVE   9 /* just a keepalive byte! */
 
#define CEPH_MSGR_TAG_BADPROTOVER   10 /* bad protocol version */
 
#define CEPH_MSGR_TAG_BADAUTHORIZER   11 /* bad authorizer */
 
#define CEPH_MSGR_TAG_FEATURES   12 /* insufficient features */
 
#define CEPH_MSG_CONNECT_LOSSY   1 /* messages i send may be safely dropped */
 
#define CEPH_MSG_PRIO_LOW   64
 
#define CEPH_MSG_PRIO_DEFAULT   127
 
#define CEPH_MSG_PRIO_HIGH   196
 
#define CEPH_MSG_PRIO_HIGHEST   255
 
#define CEPH_MSG_FOOTER_COMPLETE   (1<<0) /* msg wasn't aborted */
 
#define CEPH_MSG_FOOTER_NOCRC   (1<<1) /* no data crc */
 

Typedefs

typedef __u32 ceph_seq_t
 

Functions

struct ceph_entity_name __attribute__ ((packed))
 
const charceph_entity_type_name (int type)
 

Variables

__u8 type
 
__le64 num
 
__le32 nonce
 
struct sockaddr_storage in_addr
 
struct ceph_entity_name name
 
struct ceph_entity_addr addr
 
__le64 features
 
__le32 host_type
 
__le32 global_seq
 
__le32 connect_seq
 
__le32 protocol_version
 
__le32 authorizer_protocol
 
__le32 authorizer_len
 
__u8 flags
 
__u8 tag
 
__le64 seq
 
__le64 tid
 
__le16 priority
 
__le16 version
 
__le32 front_len
 
__le32 middle_len
 
__le32 data_len
 
__le16 data_off
 
struct ceph_entity_inst src orig_src
 
__le32 reserved
 
__le32 crc
 
struct ceph_entity_name src
 
__le32 front_crc
 
__le32 middle_crc
 
__le32 data_crc
 

Macro Definition Documentation

#define CEPH_BANNER   "ceph v027"

Definition at line 24 of file msgr.h.

#define CEPH_BANNER_MAX_LEN   30

Definition at line 25 of file msgr.h.

#define CEPH_ENTITY_TYPE_ANY   0xFF

Definition at line 55 of file msgr.h.

#define CEPH_ENTITY_TYPE_AUTH   0x20

Definition at line 53 of file msgr.h.

#define CEPH_ENTITY_TYPE_CLIENT   0x08

Definition at line 52 of file msgr.h.

#define CEPH_ENTITY_TYPE_MDS   0x02

Definition at line 50 of file msgr.h.

#define CEPH_ENTITY_TYPE_MON   0x01

Definition at line 49 of file msgr.h.

#define CEPH_ENTITY_TYPE_OSD   0x04

Definition at line 51 of file msgr.h.

#define CEPH_MON_PORT   6789 /* default monitor port */

Definition at line 8 of file msgr.h.

#define CEPH_MSG_CONNECT_LOSSY   1 /* messages i send may be safely dropped */

Definition at line 113 of file msgr.h.

#define CEPH_MSG_FOOTER_COMPLETE   (1<<0) /* msg wasn't aborted */

Definition at line 168 of file msgr.h.

#define CEPH_MSG_FOOTER_NOCRC   (1<<1) /* no data crc */

Definition at line 169 of file msgr.h.

#define CEPH_MSG_PRIO_DEFAULT   127

Definition at line 156 of file msgr.h.

#define CEPH_MSG_PRIO_HIGH   196

Definition at line 157 of file msgr.h.

#define CEPH_MSG_PRIO_HIGHEST   255

Definition at line 158 of file msgr.h.

#define CEPH_MSG_PRIO_LOW   64

Definition at line 155 of file msgr.h.

#define CEPH_MSGR_TAG_ACK   8 /* message ack */

Definition at line 82 of file msgr.h.

#define CEPH_MSGR_TAG_BADAUTHORIZER   11 /* bad authorizer */

Definition at line 85 of file msgr.h.

#define CEPH_MSGR_TAG_BADPROTOVER   10 /* bad protocol version */

Definition at line 84 of file msgr.h.

#define CEPH_MSGR_TAG_CLOSE   6 /* closing pipe */

Definition at line 80 of file msgr.h.

#define CEPH_MSGR_TAG_FEATURES   12 /* insufficient features */

Definition at line 86 of file msgr.h.

#define CEPH_MSGR_TAG_KEEPALIVE   9 /* just a keepalive byte! */

Definition at line 83 of file msgr.h.

#define CEPH_MSGR_TAG_MSG   7 /* message */

Definition at line 81 of file msgr.h.

#define CEPH_MSGR_TAG_READY   1 /* server->client: ready for messages */

Definition at line 75 of file msgr.h.

#define CEPH_MSGR_TAG_RESETSESSION   2 /* server->client: reset, try again */

Definition at line 76 of file msgr.h.

#define CEPH_MSGR_TAG_RETRY_GLOBAL
Value:
5 /* server->client + gseq: try again
with higher gseq */

Definition at line 79 of file msgr.h.

#define CEPH_MSGR_TAG_RETRY_SESSION
Value:
4 /* server->client + cseq: try again
with higher cseq */

Definition at line 78 of file msgr.h.

#define CEPH_MSGR_TAG_WAIT
Value:
3 /* server->client: wait for racing
incoming connection */

Definition at line 77 of file msgr.h.

#define CEPH_PORT_FIRST   6789

Definition at line 15 of file msgr.h.

#define CEPH_PORT_LAST   6900

Definition at line 17 of file msgr.h.

#define CEPH_PORT_START   6800 /* non-monitors start here */

Definition at line 16 of file msgr.h.

Typedef Documentation

typedef __u32 ceph_seq_t

Definition at line 32 of file msgr.h.

Function Documentation

struct ceph_entity_name __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

const char* ceph_entity_type_name ( int  type)

Definition at line 7 of file ceph_strings.c.

Variable Documentation

Definition at line 73 of file msgr.h.

__le32 authorizer_len

Definition at line 108 of file msgr.h.

__le32 authorizer_protocol

Definition at line 107 of file msgr.h.

__le32 connect_seq

Definition at line 105 of file msgr.h.

__le32 crc

Definition at line 150 of file msgr.h.

__le32 data_crc

Definition at line 167 of file msgr.h.

__le32 data_len

Definition at line 144 of file msgr.h.

__le16 data_off

Definition at line 145 of file msgr.h.

Definition at line 102 of file msgr.h.

__u8 flags

Definition at line 109 of file msgr.h.

__le32 front_crc

Definition at line 167 of file msgr.h.

__le32 front_len

Definition at line 142 of file msgr.h.

__le32 global_seq

Definition at line 104 of file msgr.h.

__le32 host_type

Definition at line 103 of file msgr.h.

Definition at line 69 of file msgr.h.

__le32 middle_crc

Definition at line 167 of file msgr.h.

__le32 middle_len

Definition at line 143 of file msgr.h.

Definition at line 72 of file msgr.h.

__le32 nonce

Definition at line 68 of file msgr.h.

__le64 num

Definition at line 49 of file msgr.h.

Definition at line 148 of file msgr.h.

__le16 priority

Definition at line 139 of file msgr.h.

__le32 protocol_version

Definition at line 106 of file msgr.h.

__le32 reserved

Definition at line 149 of file msgr.h.

__le64 seq

Definition at line 136 of file msgr.h.

Definition at line 166 of file msgr.h.

Definition at line 112 of file msgr.h.

__le64 tid

Definition at line 137 of file msgr.h.

Definition at line 48 of file msgr.h.

__le16 version

Definition at line 140 of file msgr.h.