kernel.h

Table of Contents

Location

include/linux/kernnel.h

ALIGN

#define ALIGN(x, a)             __ALIGN_KERNEL((x), (a))
//=> (x + (a - 1)) & ~a

Example: 字对齐 a=2 从而最后一位始终为0

Author: Shi Shougang

Created: 2015-03-05 Thu 23:20

Emacs 24.3.1 (Org mode 8.2.10)

Validate