Changes to of_device ?

David Laight David.Laight at ACULAB.COM
Sat Jun 18 00:23:11 EST 2011


 
> For finding structures, the following pattern tends to work well:
> 
> 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: '^[^="]*[^ =][^="]*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




More information about the Linuxppc-dev mailing list