Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 13:16:22 +0200
From:      =?iso-8859-1?Q?=22Marc_L=F6rner=22?= <loerner@gmx.de>
To:        freebsd-hackers@freebsd.org
Subject:   re: how to do page level mem alloc in freebsd kernel?
Message-ID:  <20100715111622.77770@gmx.net>

next in thread | raw e-mail | index | archive | help
Hello,
what about using contigmalloc(9), there you can specify
alignment and boundary.

HTH, 
Marc

>Hi,
>
>I want to allocate one (or more) pages in kernel space.
>I'm not sure what is the api in freebsd (something which
>is similar to __get_free_pages() of linux).
>
>Would malloc(4096, ...) guarantee that the returned
>address is aligned on page boundary?
>
>Thanks and regards,
>-Kalash
-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100715111622.77770>