How to find macro defination in source code ?

3 messages, 3 authors, 2010-06-19 · open the first message on its own page

How to find macro defination in source code ?

From: wilbur.chan <hidden>
Date: 2010-06-18 16:47:52

For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
can't find where it is implement.

Is there any solutions to find a macro defination in code ?

Thx

Re: How to find macro defination in source code ?

From: jjDaNiMoTh <hidden>
Date: 2010-06-18 17:46:47

2010/6/18 wilbur.chan [off-list ref]:
For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
can't find where it is implement.

Is there any solutions to find a macro defination in code ?

Thx
Yes, use the lxr engine [1].


[1] http://lxr.linux.no

Re: How to find macro defination in source code ?

From: Michael Ellerman <hidden>
Date: 2010-06-19 05:52:22

On Sat, 2010-06-19 at 00:47 +0800, wilbur.chan wrote:
For example, a macro in serial driver 8250.c , SERIAL_PORT_DFNS ,I
can't find where it is implement.
It looks to be in 8250.c, so I don't know why you can't find it.
Is there any solutions to find a macro defination in code ?
# make tags
# vi -t SERIAL_PORT_DFNS

Or in general:
http://ctags.sourceforge.net/

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help