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

Manavendra Nath Manav mnm.kernel at gmail.com
Tue Oct 6 11:47:58 EDT 2015


On Tue 6 Oct, 2015 18:34 慕冬亮 <mudongliangabcd at gmail.com> wrote:

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

____________________________________________



A quick look at cscope and ctags will solve your problem.

-- manav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151006/3e400056/attachment.html 


More information about the Kernelnewbies mailing list