From owner-freebsd-hackers Thu Mar 5 22:59:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA17073 for freebsd-hackers-outgoing; Thu, 5 Mar 1998 22:59:54 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA17013 for ; Thu, 5 Mar 1998 22:59:50 -0800 (PST) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id WAA24313; Thu, 5 Mar 1998 22:54:13 -0800 (PST) Message-Id: <199803060654.WAA24313@implode.root.com> To: Ustimenko Semen cc: Mike Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: Are mbufs aligned or bounded on something? In-reply-to: Your message of "Fri, 06 Mar 1998 10:37:28 +0600." From: David Greenman Reply-To: dg@root.com Date: Thu, 05 Mar 1998 22:54:13 -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >By the way: if i need aligned memory, should i use contigmalloc(), or >better to use malloc, and align block by hands? All memory returned by malloc() is guaranteed to be power of two aligned and won't span a page boundry if <= a page in size; there are many places in the kernel that rely on this. If you need a large chunk of memory that must be physically contiguous, then use contigmalloc(). -DG David Greenman Core-team/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message