Xen Test Framework
xs_wire.h
Go to the documentation of this file.
1 #ifndef XEN_PUBLIC_IO_XS_WIRE_H
2 #define XEN_PUBLIC_IO_XS_WIRE_H
3 
4 /* API/ABI relevent to the XenBus shared memory interface. */
5 
6 #define XENBUS_RING_SIZE 1024
7 static inline uint32_t mask_xenbus_idx(uint32_t idx)
8 {
9  return idx & (XENBUS_RING_SIZE - 1);
10 }
11 
13  char req[XENBUS_RING_SIZE]; /* Requests to the xenstore daemon. */
14  char rsp[XENBUS_RING_SIZE]; /* Replies and async watch events. */
19 };
21 
22 #define XENBUS_SERVER_FEATURE_RECONNECTION 1
23 
24 #define XENBUS_CONNECTED 0
25 #define XENBUS_RECONNECT 1
26 
27 
28 /* API/ABI relevent to the Xenstore protocol. */
29 
35 };
36 
38 {
59  /* XS_RESTRICT has been removed */
62 
63  XS_TYPE_COUNT, /* Number of valid types. */
64 
65  XS_INVALID = 0xffff /* Guaranteed to remain an invalid type */
66 };
67 
68 
69 #define XENSTORE_PAYLOAD_MAX 4096
70 
71 #define XENSTORE_ABS_PATH_MAX 3072
72 #define XENSTORE_REL_PATH_MAX 2048
73 
74 #endif /* XEN_PUBLIC_IO_XS_WIRE_H */
75 
76 /*
77  * Local variables:
78  * mode: C
79  * c-file-style: "BSD"
80  * c-basic-offset: 4
81  * tab-width: 4
82  * indent-tabs-mode: nil
83  * End:
84  */
uint32_t req_id
Definition: xs_wire.h:32
static uint32_t mask_xenbus_idx(uint32_t idx)
Definition: xs_wire.h:7
char req[XENBUS_RING_SIZE]
Definition: xs_wire.h:13
char rsp[XENBUS_RING_SIZE]
Definition: xs_wire.h:14
uint32_t req_prod
Definition: xs_wire.h:15
Definition: xs_wire.h:52
__UINT32_TYPE__ uint32_t
Definition: stdint.h:16
uint32_t rsp_cons
Definition: xs_wire.h:16
uint32_t tx_id
Definition: xs_wire.h:33
uint32_t rsp_prod
Definition: xs_wire.h:16
uint32_t len
Definition: xs_wire.h:34
uint32_t connection
Definition: xs_wire.h:18
#define XENBUS_RING_SIZE
Definition: xs_wire.h:6
uint32_t type
Definition: xs_wire.h:31
xenstore_msg_type
Definition: xs_wire.h:37
uint32_t server_features
Definition: xs_wire.h:17
uint32_t req_cons
Definition: xs_wire.h:15