TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Vitus Jensen
from: Mike Bilow
date: 1995-01-20 07:14:42
subject: OS/2`s Resource Manager

JG>> What is it?  Where can I get documentation on making my
 JG>> device drivers RM aware?

 MB> If you have an account on the IBM Device Driver Support Center 
 MB> BBS, "The DUDE," (407)982-3217, download RMBASE.ZIP.  If you do 
 MB> not have an account, you need to set one up.  THIS BBS IS ONLY 
 MB> FOR DEVICE DRIVER WRITERS.
 VJ> [...]

 VJ> Before I try to get access to "The DUDE" from Germany, 
 VJ> would someone please explain what "resource manager" 
 VJ> means?

I don't know since I am in the United States, but the IBM Hursley group in
the U.K. has some responsibility for device drivers, so they may have
developer support.  The minimal header files to use the Resource Manager
are included on the latest DDK (cryptically and with no other
documentation, since it was not ready when the CD-ROM deadline came around,
in \DDKX86\SRC\DEV\RESOURCE).

 VJ> Or better yet, let me say what I am looking for:

 VJ> I wrote a Device Driver (ADD) for our SCSI controller. 
 VJ> But I never found a way to tell OS/2 to hide the 
 VJ> register/memory of the controller from OS/2 (IOPL) and 
 VJ> DOS programs. Except by writing a Virtual Device Driver 
 VJ> which can't be part of a *.ADD file and doesn't affect 
 VJ> OS/2 programs. So anyone wanting to, may crash the 
 VJ> system (e.g. by loading the DOS device driver [as a 
 VJ> TSR]).

As far as I know, you have to write a VDD; this is how IBM protects the
standard hard drive and floppy controllers from DOS software.  By setting
"IOPL=YES" you are accepting an inherent risk from OS/2 programs.
 Only 16-bit OS/2 programs can have IOPL, so that is a dying thing.

 VJ> Will the "resource manager" handle those problems?

No, the Resource Manager is a co-operative registration facility that is
intended primarily for the benefit of device drivers so that they can avoid
potentially destructive probes of each other's hardware.  Although the
RMVIEW tool shipped with Warp does dump this information to the user, that
is just a by-product of the system.  I don't think the kernel enforces
resource sharing in the way you would like, but making your ADD RM-aware
could not hurt.

-- Mike

--- Maximus/2 2.02
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430
SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 229/2 12/2442 711/409 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™.