Allocate aligned memory
marc.loerner at hob.de
Fri Dec 15 00:38:26 PST 2006
I want to allocate 120KB of memory thats aligned to 32KB.
I already saw/found the function contigmalloc, now my question is, why
following functioncall never does return with an resulting address, instead
null is returned?
unsigned long *p = (unsigned long*)
contigmalloc(120*1024, M_DEVBUF, M_WAITOK, 0, (1<<22), 32*1024, 1024*1024);
Thanks in advance,
P.S.: I'm already aware that contigmalloc doesn't support M_WAITOK!
More information about the freebsd-hackers