From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 4 19:08:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F4EE16A4CE for ; Sat, 4 Dec 2004 19:08:16 +0000 (GMT) Received: from ims-1.prv.ampira.com (ims-1.ampira.com [66.179.231.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1036E43D45 for ; Sat, 4 Dec 2004 19:08:16 +0000 (GMT) (envelope-from kamalp@acm.org) Received: from [202.142.94.194] (helo=[172.16.3.26]) by ims-1.prv.ampira.com with asmtp (Exim 4.24) id 1CafDF-0003bk-HB for freebsd-hackers@freebsd.org; Sat, 04 Dec 2004 14:04:58 -0500 Message-ID: <41B20B19.3090204@acm.org> Date: Sun, 05 Dec 2004 00:38:09 +0530 From: "Kamal R. Prasad" User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: mmap() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 19:08:16 -0000 Hello, I wrote an mmap() interface for a USB device. But when I made a call to it using mmap(), I saw that mmap interface is called 3-4 times. The calls are being made from within mmap() i.e. sys/vm/vm_mmap.c. Can someone tell me if there is something like a re-try going on for some reason? From userspace, I called it as addr = mmap(NULL, 1024, PROT_READ, MAP_SHARED, fd, 0); The version of OS is Freebsd 5.3(stable). thanks -kamal