Linux伊甸园论坛's Archiver
Linux伊甸园论坛
»
Linux内核源代码学习
» __attribute__ ((__aligned__(SMP_CACHE_BYTES)))
螳螂123
发表于 2008-3-24 15:25
__attribute__ ((__aligned__(SMP_CACHE_BYTES)))
请教一下各位大哥这个宏是什么意思呀
struct tasklet_head
{
struct tasklet_struct *list;
} __attribute__ ((__aligned__(SMP_CACHE_BYTES)));
这样定义一个数据结构跟一般定义有什么不同呀
zltjiangshi
发表于 2008-3-25 14:31
告诉编译器按Cache行的大小对齐结构体。
页:
[1]
Powered by
Discuz! Archiver
6.1.0 © 2001-2007
Comsenz Inc.