Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* mmap API  never make it to my driver on Tru64 5.1A
@ 2002-08-26 19:46 Ron Jolly
  2002-08-26 22:42 ` Vipin Gokhale
  0 siblings, 1 reply; 2+ messages in thread
From: Ron Jolly @ 2002-08-26 19:46 UTC (permalink / raw)


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.

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mmap API  never make it to my driver on Tru64 5.1A
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Vipin Gokhale @ 2002-08-26 22:42 UTC (permalink / raw)




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
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-26 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox