On Wed, Mar 04, 2009 at 12:28:15PM +0000, David Brownlee wrote:
How can you find all MD bus_dmamap_create() implementation in whole
MI/MD source tree?
I would suspect by a similar process of finding the calls in
the source tree :)
There are 698 references to bus_dmamap_create through the
tree, 29 are defines, 486 are of the form 'if (bus_dmamap_create'
or 'foo = bus_dmamap_create', and a fair chunk of the rest are
in printfs, comments, or other misc areas.
I'd estimate there would be fewer references to check in the
implementations than the callers.
the problem is that a simple grep doesn't give you all implementations.
Some of then are referenced though function pointers; finding all of them
requires more work.