How to interpret address_space struct in `# define __percpu __attribute__((noderef, address_space(3)))`

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 10:50:38

问题


I am looking scheduling algorithm in

static void __sched notrace __schedule(bool preempt) (__schedule)

Along the way, I find # define __percpu __attribute__((noderef, address_space(3))) (address_space)

However, I cannot understand why struct address_space can be initialized by using round brackets( ) since I look through struct syntax in c language.

How to initialize a struct in accordance with C programming language standards. struct should be initialized by { } for each filed.

So, what does address_space(3) mean?

来源:https://stackoverflow.com/questions/46591635/how-to-interpret-address-space-struct-in-define-percpu-attribute-noder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!