SLAB vs. pci_alloc_xxx in usb-uhci patch [RFC: API]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Manfred Spraul
Do lots of drivers need the reverse mapping? It wasn't on my todo list yet.
I am against any API which provides this. It can be extremely expensive to do this on some architectures, and since the rest of the PCI dma API does not provide such an interface neither should the pool routines.
Drivers can keep track of this kind of information themselves, and that is what I tell every driver author to do who complains of a lack of a "bus_to_virt()" type thing, it's just lazy programming.
Later,
David S. Miller
[email protected]
Quoted 4 lines
Drivers can keep track of this kind of information themselves, and that is what I tell every driver author to do who complains of a lack of a "
bus_to_virt()" type thing, it's just lazy programming.
I'd agree. There are _good_ reasons for having reverse mappings especially on certain architectures, but thats for stuff like cache management. Its stuff the drivers have no business poking their noses directly into