home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / internal / 1983 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.2 KB

  1. From: rajeev@hpnmdla.sr.hp.com (Rajeev Menon)
  2. Date: Mon, 23 Nov 1992 22:29:21 GMT
  3. Subject: open() from within a Device driver
  4. Message-ID: <12850008@hpnmdla.sr.hp.com>
  5. Organization: Hewlett-Packard, Santa Rosa, CA
  6. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpl-opus!hpnmdla!rajeev
  7. Newsgroups: comp.unix.internals
  8. Lines: 20
  9.  
  10. I have a device driver on SCO UNIX SV3.2 (openDesktop 1.0) that
  11. needs to open a regular file from within the driver, write stuff to it
  12. and close the file later on, basically the equivalent of the open(), 
  13. write(), close() system call. However, I'd guess I have to use kernel
  14. equivalents being inside a device driver, right ?
  15.  
  16. The device driver manual lists a set of kernel routines, but I am
  17. not sure what's appropriate. I see no equivalent of open, although
  18. I see a db_read and a db_write. I'd appreciate hearing from someone
  19. who knows. If you have done this on other UNIXen, I'd be interested 
  20. in knowing the equivalents too.
  21.  
  22. thanks
  23.  
  24. rajeev
  25. -----------------------------------------------------------------------
  26. Rajeev Menon                Phone : (707)-577-2302
  27. Hewlett Packard Company            e-mail: rajeev@sr.hp.com
  28. 1400 Fountaingrove Pkwy
  29. Santa Rosa CA 95403
  30.