From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 15 10:25:59 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 A052F106567F for ; Thu, 15 Jul 2010 10:25:59 +0000 (UTC) (envelope-from kcnainwal@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 57AEF8FC13 for ; Thu, 15 Jul 2010 10:25:58 +0000 (UTC) Received: by vws19 with SMTP id 19so1221165vws.13 for ; Thu, 15 Jul 2010 03:25:58 -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:cc:content-type; bh=nU+L3eQA5V6BTYg1h+BWNgyf1cnDi00qBe57rScMMJU=; b=w4//sVDj9zTIcxRWUbOHizbfq0sQsSyLfzovWyIk3WjeQUE1GZ3Ohet5EgnxnFnp4d J2pQGcltijHsnIBfBilHeryMhG9LMM+ibdlubIr+YiwcZJ1fTUk3d1SwTxGqU9fwnE86 deZmYpqRpXNYoPhfMJs+pia4Ifoi2FSBiW08c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=mAdfQXcCHjIlu6dcrt83290R8J1lEWvYUI3zmqj58q2aNqTrDP1UDSoMKGto2alksj 2xF8NmwBHU/7w0EHT6heSqr/6JMm4VLDl4RU+IktVhH0X0mi5UlP3V35CDAOQouZ/+SX vs/ECM84tS6YZYh4VH/krb5YwTedcJ8SYAJQw= MIME-Version: 1.0 Received: by 10.220.121.144 with SMTP id h16mr9515675vcr.159.1279187790346; Thu, 15 Jul 2010 02:56:30 -0700 (PDT) Received: by 10.220.163.198 with HTTP; Thu, 15 Jul 2010 02:56:30 -0700 (PDT) Date: Thu, 15 Jul 2010 15:26:30 +0530 Message-ID: From: kc nainwal To: freebsd-hackers@freebsd.org X-Mailman-Approved-At: Thu, 15 Jul 2010 10:59:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: kc nainwal 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:25:59 -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