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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux