From owner-freebsd-hackers Mon Apr 22 16:44:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by hub.freebsd.org (Postfix) with SMTP id 9074937B754 for ; Mon, 22 Apr 2002 16:43:57 -0700 (PDT) Received: (qmail 24452 invoked from network); 22 Apr 2002 23:43:41 -0000 Received: from dsl092-171-091.wdc1.dsl.speakeasy.net (66.92.171.91) by dsl092-171-091.wdc1.dsl.speakeasy.net with SMTP; 22 Apr 2002 23:43:41 -0000 Date: Mon, 22 Apr 2002 19:43:41 -0400 (EDT) From: Kenneth Culver To: Terry Lambert Cc: freebsd-hackers@FreeBSD.ORG, Subject: Re: implementing linux mmap2 syscall In-Reply-To: <3CC3E619.8AD5EFF9@mindspring.com> Message-ID: <20020422194240.K24428-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Basically, it just wants to bitch when the offset is not page > aligned, and then call the old mmap if it doesn't bitch. > Basically I misunderstood what the linux mmap2 was doing, it recieves an offset as a number of pages, not as bytes, so by definition it's already page aligned. All I have to do is convert the number of pages to a number of bytes and pass it along to FreeBSD's mmap. Thanks! Ken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message