> 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 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev