Gérard -- > Just for information to people that want to complexify the > pci_alloc_consistent() interface thats looks simple and elegant to me: I certainly didn't propose that! Just a layer on top of the pci_alloc_consistent code -- used as a page allocator, just like you used it. > The object file of the allocator as seen in sym2 is as tiny as 3.4K > unstripped and 2.5K stripped. What I sent along just compiled to 2.3 KB ... stripped, and "-O". Maybe smaller with normal kernel flags. The reverse mapping code hast to be less than 0.1KB. I looked at your code, but it didn't seem straightforward to reuse. I think the allocation and deallocation costs can be pretty comparable in the two implementations. Your implementation might even fit behind the API I sent. They're both layers over pci_*_consistent (and both have address-to-address mappings, implemented much the same). > Now, if modern programmers are expecting Java-like interfaces for writing > kernel software, it is indeed another story. :-) Only if when you wrote "Java-like" you really meant "reusable"! :) - Dave _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: http://lists.sourceforge.net/lists/listinfo/linux-usb-devel
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Johannes Erdfelt
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Alan Cox
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... David Brownell
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in us... David S. Miller
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Steve Longerbeam
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... Pete Zaitcev
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in us... David S. Miller
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... David Brownell
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... Gérard Roudier
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Alan Cox
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... David Brownell
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb-uhc... Gérard Roudier
- [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in us... David Brownell
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Russell King
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx i... Roman Weissgaerber
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Brad Parker
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx i... Roman Weissgaerber
- Re: [linux-usb-devel] Re: SLAB vs. pci_alloc_xxx in usb... Alan Cox