TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Richard wwp
from: Vitus Jensen
date: 1996-04-19 00:02:38
subject: Re: OS/2 Device drivers

Moin Richard,

16.04.96 11:26, you wrote a message to All:

 Rw> Doesn anyone know if I have to serialise access to the Open,
 Rw> Close and Ioctl strategy routines in an OS/2 character device
 Rw> driver.

You don't have to if your device allows concurrent access.

[...]

 Rw> I stripped the driver down to a very simple dd that has a timer
 Rw> service routine and an ioctl. When the ioctl is called it blocks,
 Rw> then the timer routine ProcRuns after 256 calls; again the same
 Rw> problem if the driver is reopened while the original thread is
 Rw> blocked.

What magic do you use as the 'event id'? I'm very sure (and will check 
tomorrow), that I used a similar approach using the IOCtl data packet
address as event id. It's in an ADD (counts as character driver) and
several programs 
may access a controller via DosDevIOCtl concurrently.

Tschuess,
	Vitus

PIN:  10:1000/100.20
Fido: 2:2474/100.20

---
* Origin: Really a Point of BetaBox, Walheim (2:2474/100.20)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 2474/100 0 2433/1200 225 270/101 712/515 711/808 809 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™.