RE: Changes to of_device ?

From
David Laight <hidden>
Date
2011-06-17 14:24:57
Reply to
Grant Likely, 2011-06-17
=20
For finding structures, the following pattern tends to work well:
=20
git grep 'struct device_node {'
In general 'typedef.*\<type_name\>' will find types.
eg: grep -r -n --include '*.h' 'typedef.*\<type_name\>'
base_of_source_tree

Finding functions (in .c files) is easy if names start in
column 1 '^function_name\>' will work.
But I ended up with: '^[^=3D"]*[^ =3D][^=3D"]*function_name\>' to find
some where the type was on the same line.

If you get really desparate, the definitions of functions can
be found by grepping through the namelists of the .o files.

	David
Thread (8 messages) 8 messages, 4 authors, last reply 2011-06-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help