typedef struct shm_head {
volatile int head;
volatile int tail;
atomic_t blk_cnt;
volatile int head;
volatile int tail;
atomic_t blk_cnt;
} __attribute__ ((packed)) shm_head_t;
告诉编译器取消结构在编译过程中的优化对齐, 按照实际占用字节数对齐,是GCC特有的语法.