Thread View: comp.unix.internals
2 messages
2 total messages
Started by Rajeev Menon
Mon, 23 Nov 1992 22:29
open() from within a Device driver
Author: 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
Re: open() from within a Device driver
Author: Brian Fitzgerald
Date: Tue, 24 Nov 1992 05:49
Date: Tue, 24 Nov 1992 05:49
9 lines
682 bytes
682 bytes
Rajeev Menon writes: >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. Gadzooks! Why? Brian
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads