🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1069

Re: Writing Device Drivers

#1069
From: Robert Olivier
Date: Mon, 14 Sep 1992 14:28
24 lines
1196 bytes
In <msf.716240474@skaro> msf@skaro.as.arizona.edu (Michael Fulbright) writes:

>I am working on a port of the SBBSD unix device driver for the Sound
>Blaster.  I have looked at several sample device drivers and I have
>almost all the info I need. I have 2 remaining questions:

>1) How do you parse the command line from CONFIG.SYS that invoked
>   your device driver?

>   Say CONFIG.SYS has    DEVICE=D:\A.SYS A B C D

>   How do I get the string 'A B C D'? Is it passed as part of the
>   initialization request packet?

The parameters are passed in the init request block beginning at offset
0x12.  This is covered on page 15-5 in the IBM Physical Device Driver
Reference.

rjo@panix.com

-- 
Robert J. Olivier

rjo@panix.com
Technical Details
Message-ID: <1992Sep14.142829.912@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!spool.mu.edu!nigel.msen.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cmcl2!panix!rjo
References: <msf.716240474@skaro>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!spool.mu.edu!nigel.msen.com!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!rutgers!cmcl2!panix!rjo
From: rjo@panix.com (Robert Olivier)
Newsgroups: comp.os.os2.programmer
Subject: Re: Writing Device Drivers
Message-ID: <1992Sep14.142829.912@panix.com>
Date: 14 Sep 92 14:28:29 GMT
References: <msf.716240474@skaro>
Distribution: na
Organization: PANIX Public Access Unix, NYC
Lines: 24