kernel.h
Location
include/linux/kernnel.h
ALIGN
#define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) //=> (x + (a - 1)) & ~a
Example: 字对齐 a=2 从而最后一位始终为0
include/linux/kernnel.h
#define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) //=> (x + (a - 1)) & ~a
Example: 字对齐 a=2 从而最后一位始终为0