home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!noao!bordeaux.kpno.noao.edu!jdavis
- From: jdavis@bordeaux.kpno.noao.edu (Jim Davis)
- Subject: Re: Questions
- Message-ID: <1992Aug26.213234.8754@noao.edu>
- Followup-To: comp.sys.sun.misc
- Sender: news@noao.edu
- Nntp-Posting-Host: bordeaux.kpno.noao.edu
- Organization: National Optical Astronomy Observatories, Tucson AZ
- References: <1992Aug26.195534.24066@menudo.uh.edu>
- Date: Wed, 26 Aug 1992 21:32:34 GMT
- Lines: 36
-
- In article <1992Aug26.195534.24066@menudo.uh.edu> cavers@menudo.uh.edu (Chris M. Cavers) writes:
- >I am trying to adapt the example ram disk device driver source
- >given in the Sun manual on device drivers.
- >
- >a) When the os requests something from the device driver, what is the
- >proper sequence of actions to take if I wish to suspend the calling
- >process and queue the request. (A detailed step by step example would
- >be appreciated).
- >
- >b) What is in the ram.h file that is included in the example source code?
- >
- >Thanks in advance
- >
-
- Well, I'm not sure about a), but b) is simple enough. When you run your
- kernel config file through /etc/config, /etc/config will see the line that
- says
-
- pseudo-device ram
-
- and fill in ram.h with
-
- #define NRAM 1
-
- Note how the body of the ram driver is surrounded by the
-
- #if NRAM > 0
- ...
- #endif
-
- block?
-
- Followups to comp.sys.sun.misc...
- --
- Jim Davis | "Knock it off, Uncle Owen. Get an afterlife!"
- jdavis@noao.edu | -- Clarissa Darling
-