wangzhengquan
2021-02-20 b5ae34d4422399c5d5458d071cca8c9bc89d20bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "usg_common.h"
static void sig_quit(int);
#define SIGCLOSE1   (SIGRTMIN +1)
 
struct cm_con_data_t
{
  uint64_t addr; /* Buffer address */
  uint32_t rkey; /* Remote key */
  uint32_t qp_num; /* QP number */
  uint16_t lid; /* LID of the IB port */
  uint8_t gid[16]; /* gid */
} __attribute__ ((packed));
 
 
 
 
struct cm_con_data2_t
{
  uint64_t addr; /* Buffer address */
  uint32_t rkey; /* Remote key */
  uint32_t qp_num; /* QP number */
  uint16_t lid; /* LID of the IB port */
  uint8_t gid[16]; /* gid */
} ;
 
int
main(void)
{
 
 printf("===%d, %d \n", sizeof(cm_con_data_t),  sizeof(cm_con_data2_t));
  /* SIGQUIT here will terminate with core file */
}