Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Vipin Gokhale <vipin.gokhale@attbi.com>
Subject: Re: mmap API  never make it to my driver on Tru64 5.1A
Date: Mon, 26 Aug 2002 15:42:06 -0700	[thread overview]
Message-ID: <3D6AAEBE.2010105@attbi.com> (raw)
In-Reply-To: c76164d.0208261146.570df676@posting.google.com



Ron Jolly wrote:

> Hello all,
> 
> Back on July 19,2002 another poster, Bob Irwin posted a message about 
> having difficulty getting a call to mmap() to get down to his xx_mmap(
> call in his driver. Bob's original message:
> 
> //////////////////////////////////////////////////////
> Running tru64 on a compaq alpha. (tru64 V5.1A Rev 1885). I've written
> a device driver for a pci card that seems to identify and configure
> OK. printfs in the configure code shows correct PCI id and unique
> values in the PCI memory via BAR0. A test program shows that xxopen,
> xxioctl, xxclose functions are being entered. However mmap() call
> fails with error 22 (EINVAL). The xxmmap function in the driver is not
> entered. It appears that the mmap() never makes it to the kernel.
> /////////////////////////////////////////////////////
> 
> 
> I too am having the exact same problem on the same OS (V5.1A Rev 1885)
> running
> on an Alpha DS20. All of the other functions, xx_open,
> xx_ioctl,xx_close functions are being entered.
> My xx_mmap() function in the driver is never getting called. 
> 
> As an experiment, I replaced all of the unused
> function calls in the DSENT structure that would normally be sent to
> nodev() to a dummy function I created called xx_dummy().
> Low and behold, when I called the mmap() api from an
> application, I got a printout that my xx_dummy routine was entered.
> I then replaced  the xx_dummy() func with seperate dummy funcs. The
> function
> that is actually getting called is the one directly after the xx_mmap
> call
> which is the one that is defined d_segmap. I would suspect calling the
> d_segmap
> function  instead of the d_mmap function will not produce the desired
> results.
> 


I suspect this has to do with DDI/DKI specs. If driver has segmap entry 
point, mmap will always call it. Segmap is supposed to be able to figure 
out what to do based on the arguments it is passed.


> Any one at HP/Compaq/DEC have any insights on this???
> 
> 
> thanks
> Ron Jolly
> Software Driver Development
> VMIC
> ron.jolly@gefanuc.com
> 256-382-8285 Tel
> 



      reply	other threads:[~2002-08-26 22:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26 19:46 mmap API never make it to my driver on Tru64 5.1A Ron Jolly
2002-08-26 22:42 ` Vipin Gokhale [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox