From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 15 10:56:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 063A6106564A for ; Thu, 15 Jul 2010 10:56:49 +0000 (UTC) (envelope-from kalash.nainwal@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B3E728FC17 for ; Thu, 15 Jul 2010 10:56:48 +0000 (UTC) Received: by vws19 with SMTP id 19so1256163vws.13 for ; Thu, 15 Jul 2010 03:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=buVoQfQ9DR78qbKxLMWv4Jrqry1epNjPdun3kIuFCx8=; b=WPqRKmutt57agVdtLh4lQYUycY84VovfLMuhzvZFBGmh7PPkixonYJNcz9N0Mq8foe 2xA3mACM1TFkgtX30E3ivZwHcoQk2DGuNN3tdEu9SUVxXQTcqOL1RN9RYbIeMBVo7CYr 7U2ZrZlPK006FhlHmgBC63zBi4G7md4jpLjv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lC//Lt76Yt2v4/jRma9albxpaZpawf9OctzJD60XgqpA2EeBLNLeQGqlMieOBW72Et ZbQW++l2IL4A6GTzRb7ZV8SSBzkqg4ruNEoPB7ieUCOdwXFZFYAti+Dm0VLHFpi/oLv1 03rSBGDdwZPR24cADe56NxJrIG5CVZvFaTsfI= MIME-Version: 1.0 Received: by 10.220.164.129 with SMTP id e1mr2192737vcy.124.1279189733277; Thu, 15 Jul 2010 03:28:53 -0700 (PDT) Received: by 10.220.192.8 with HTTP; Thu, 15 Jul 2010 03:28:53 -0700 (PDT) Date: Thu, 15 Jul 2010 15:58:53 +0530 Message-ID: From: kalash nainwal To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: how to do page level mem alloc in freebsd kernel? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2010 10:56:49 -0000 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