Skip to contentSkip to conversation

SLAB vs. pci_alloc_xxx in usb-uhci patch [RFC: API]

DISCUSSION David S. Miller 2 participants 2 messages Mar 9, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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]

#2 lore raw
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