home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sysv386:12401 comp.unix.internals:1609 comp.unix.questions:9404 comp.unix.wizards:3301
- Path: sparky!uunet!olivea!apple!news.oc.com!spssig.spss.com!uchinews!iitmax!rice.iit.edu!cs543tm
- From: cs543tm@glen-ellyn.iit.edu (Thomas Mellman)
- Newsgroups: comp.unix.sysv386,comp.unix.internals,comp.unix.questions,comp.unix.wizards
- Subject: SCO Installable Device Driver package question
- Message-ID: <1992Jul24.184909.9869@glen-ellyn.iit.edu>
- Date: 24 Jul 92 18:49:09 GMT
- Organization: Illinois Institute of Technology, Rice Campus
- Lines: 35
-
- I have a question about the SCO Unix Installable Device Driver
- facility: Is there any way to support multiple major numbers for
- a single driver?
-
- Our driver supports multiple devices per board, as well as multiple
- boards. I implemented it such that each device is a minor number
- and each board is a major number. Unfortunately, it doesn't seem that
- the IDD package can support the notion of one driver having multiple
- major numbers.
-
- You can put two lines in the System file and support two interrupts,
- and thereby support two boards. But this requires an ioctl() to
- inform the driver which board is to be used (or some kind of
- constricting naming convention) - as far as I can tell. Putting
- two lines in the Master file probably would generate two major
- numbers, but naturally tries to include two drivers, resulting in
- multiply-defined names.
-
- As a temporary arrangement, I have modified idbuild such that if I
- pass it the -e (early-exit) option, it creates conf.c and the other
- idmkunix input files and then exits. I can then edit conf.c to add
- the second major number. Finally, if I run idbuild with the -m option
- (make-now), it skips the call to idconfig, and just does a idmkunix.
- Unfortunately, this process will have to be done everytime any device
- driver is added or removed from the system. New nodes will have to
- be built as well.
-
- Does anyone know of a good (or proper) way to handle this situation?
- Any responses will be appreciated. Thank you.
-
- -----------------------------------------------------------------------
- Thomas Mellman USA 312/698-0300 x250
- c/o
- mellman@iubacs on bitnet
- mellman@ucs.indiana.edu on usenet
-