__attribute__((__section__(".data.percpu"))) __typeof__(struct runqueue) per_cpu__runqueues;
也就是在.data.percpu这个section中定义了一个变量per_cpu__runqueues,其类型是struct runqueue。
事实上,这里所谓的变量per_cpu__runqueues,其实就是相对于__per_cpu_start的偏移量。
问题:
所谓的变量per_cpu__runqueues,其实就是相对于__per_cpu_start的偏移量,为什么???
percpu.png (83.63 KB, 下载次数: 56)
per_cpu_offset指的是每个cpu副本的私有数据区相对于 __per_cpu_start的offset。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |