Article View: comp.unix.internals
Article #2398open() from within a Device driver
From: Rajeev Menon
Date: Mon, 23 Nov 1992 22:29
Date: Mon, 23 Nov 1992 22:29
20 lines
1247 bytes
1247 bytes
I have a device driver on SCO UNIX SV3.2 (openDesktop 1.0) that needs to open a regular file from within the driver, write stuff to it and close the file later on, basically the equivalent of the open(), write(), close() system call. However, I'd guess I have to use kernel equivalents being inside a device driver, right ? The device driver manual lists a set of kernel routines, but I am not sure what's appropriate. I see no equivalent of open, although I see a db_read and a db_write. I'd appreciate hearing from someone who knows. If you have done this on other UNIXen, I'd be interested in knowing the equivalents too. thanks rajeev ----------------------------------------------------------------------- Rajeev Menon Phone : (707)-577-2302 Hewlett Packard Company e-mail: rajeev@sr.hp.com 1400 Fountaingrove Pkwy Santa Rosa CA 95403
Technical Details
Message-ID:
<12850008@hpnmdla.sr.hp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpl-opus!hpnmdla!rajeevShow Full Headers
Complete Article Headers
From: rajeev@hpnmdla.sr.hp.com (Rajeev Menon) Date: Mon, 23 Nov 1992 22:29:21 GMT Subject: open() from within a Device driver Message-ID: <12850008@hpnmdla.sr.hp.com> Organization: Hewlett-Packard, Santa Rosa, CA Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!scd.hp.com!hpscdm!hplextra!hpl-opus!hpnmdla!rajeev Newsgroups: comp.unix.internals Lines: 20