Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2005 15:32:53 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-drivers@freebsd.org
Subject:   Re: reference drivers
Message-ID:  <200510121532.54474.jhb@freebsd.org>
In-Reply-To: <434983A6.8040403@endace.com>
References:  <434983A6.8040403@endace.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 09 October 2005 04:55 pm, Michael Honeyfield wrote:
> Hello all,
>
> I have been working on a small project that involes writting a drver for
> FreeBSD. I have used this link as my reference for my driver:
>
> http://www.ben.com/minipci/driver.php
>
> Now, after my modifications, I can load the kernel module fine. However,
> the mmap function is not even called. Is the mmap function used inside
> this diver the correct way map registers from kernel space to user space?

Yes.  It should be called when an application does an mmap() on an fd returned 
by open()'ing the file in /dev.

-- 
John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510121532.54474.jhb>