home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3699 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!noao!bordeaux.kpno.noao.edu!jdavis
  3. From: jdavis@bordeaux.kpno.noao.edu (Jim Davis)
  4. Subject: Re: Questions
  5. Message-ID: <1992Aug26.213234.8754@noao.edu>
  6. Followup-To: comp.sys.sun.misc
  7. Sender: news@noao.edu
  8. Nntp-Posting-Host: bordeaux.kpno.noao.edu
  9. Organization: National Optical Astronomy Observatories, Tucson AZ
  10. References: <1992Aug26.195534.24066@menudo.uh.edu>
  11. Date: Wed, 26 Aug 1992 21:32:34 GMT
  12. Lines: 36
  13.  
  14. In article <1992Aug26.195534.24066@menudo.uh.edu> cavers@menudo.uh.edu (Chris M. Cavers) writes:
  15. >I am trying to adapt the example ram disk device driver source
  16. >given in the Sun manual on device drivers.
  17. >
  18. >a) When the os requests something from the device driver, what is the
  19. >proper sequence of actions to take if I wish to suspend the calling
  20. >process and queue the request.  (A detailed step by step example would
  21. >be appreciated). 
  22. >
  23. >b) What is in the ram.h file that is included in the example source code?
  24. >
  25. >Thanks in advance
  26. >
  27.  
  28. Well, I'm not sure about a), but b) is simple enough.  When you run your
  29. kernel config file through /etc/config, /etc/config will see the line that
  30. says
  31.  
  32. pseudo-device     ram
  33.  
  34. and fill in ram.h with
  35.  
  36. #define NRAM 1
  37.  
  38. Note how the body of the ram driver is surrounded by the
  39.  
  40. #if NRAM > 0
  41. ...
  42. #endif 
  43.  
  44. block?
  45.  
  46. Followups to comp.sys.sun.misc...
  47. -- 
  48. Jim Davis            | "Knock it off, Uncle Owen.  Get an afterlife!"
  49. jdavis@noao.edu      |   -- Clarissa Darling
  50.