home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12401 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.2 KB

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