how to expand linux kernel macro in kernel source code/kernel module(outside)

慕冬亮 mudongliangabcd at gmail.com
Tue Oct 6 09:03:45 EDT 2015


Recently I was learning doubly linked list in kernel, there are many
macro in linux/fs.h, like list_add, list_del,list_for_each,list_entry,
container_of.

I know we can use "gcc -E" to expand the macro, but how do we expand
the macro in kernel source code / kernel module?

    - mudongliang



More information about the Kernelnewbies mailing list