TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Patrick Haller
date: 1997-02-18 21:13:56
subject: Driver: byte count from IOCTL

Hi Mike!

[..]
 MB> The closest you can come to accomplishing this is to have the driver
 MB> allocate some memory with DevHelp_VMAlloc() and then make it visible
 MB> in process address space with DevHelp_VMGlobalToProcess().  
How can I go the other way round ?

Application allocates a memory buffer in process space and issues an
ioctl() passing that pointer to my driver. How has that passed address to
be converted so the driver can fill my application's buffer ?

I'd like to write a DD giving me readonly access to the SAS-selector (maybe
page directories and even more).
     __
     |_)
cu/2 |atrick
[Team  OS/2]

--- FleetStreet 1.18+
* Origin: OS/2 Bodensee ! (2:246/2315.18)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 246/2315 2300 2340 10 240/5202 5010 2433/225 270/101 712/624 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.