Allocate aligned memory

Marc Lörner marc.loerner at hob.de
Fri Dec 15 01:37:25 PST 2006


On Friday 15 December 2006 10:19, Hans Petter Selasky wrote:
...
> > My suggestion is to make the your high limit (currently 1 << 22) MUCH
> > higher, if possible. Also, getting rid of the 1MB boundary might help.
>
> PS: contigmalloc is on the way out. Please use "man bus_dma" instead. For
> an example see:
>
> http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/sys/dev/usb/usb_subr
>.c
>
> And the function "usbd_mem_alloc_sub()".

Thanks for the help,
I finally got contigmalloc working!

Next step is converting to bus_dmamem_alloc, but AFAICS this function still 
uses contigmalloc. So what are the main improvements on using these new 
functions?

Kind regards,
Marc


More information about the freebsd-hackers mailing list