From owner-freebsd-hackers Thu Mar 5 20:36:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA22961 for freebsd-hackers-outgoing; Thu, 5 Mar 1998 20:36:50 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA22935 for ; Thu, 5 Mar 1998 20:36:36 -0800 (PST) (envelope-from semen@iclub.nsu.ru) Received: from localhost (semen@localhost) by iclub.nsu.ru (8.8.8/8.8.5) with SMTP id KAA05128; Fri, 6 Mar 1998 10:37:28 +0600 (NS) Date: Fri, 6 Mar 1998 10:37:28 +0600 (NS) From: Ustimenko Semen To: Mike Smith cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Are mbufs aligned or bounded on something? In-Reply-To: <199803052307.PAA27042@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 5 Mar 1998, Mike Smith wrote: > > Ah. You should look at the fxp driver to see how this is handled. I > suspect that you're actually safe to assume that the data area will not > cross a page boundary, but you might want to check. > I've suspected the same:) And it works. But it should be better to read this somewhere. By the way: if i need aligned memory, should i use contigmalloc(), or better to use malloc, and align block by hands? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message