Muli Ben-Yehuda wrote:

On Sun, Jan 16, 2005 at 01:40:28PM +0200, yakoub abaya wrote:



Is there a special interface for communication
between : device driver <-> daemon ,
other than conventional ipc ?
( i know of pipes , signal & kill )



read and write on a device file, a new file system, /sysfs, /procfs,
ioctl (not a good idea), add your own syscalls, etc, etc.


A better question is what do you want to do?

Cheers, Muli



my project in OS course , is to write disk device simulator
so a daemon simulates disk hardware by writing data to files
(as it is requested in th e sheet paper)

course staff didn't teach us anything about
actual kernel API , and metargel knows nothing about linux
they told us named pipes won't work in linux only in windows ...

i need to write daemon and driver to make this happen
from what i read in the internet :
the driver will use gendisk structure ,and pass requests
(buffer and sector address) to daemon which
in turn writes buffer to file using lseek for addressing sectors


i need to learn more about request queue

the project discription says i need to give each
command specail id so the the daemon
could deal with them...that baffles me

--------------------------------------------------------------------------
Haifa Linux Club Mailing List (http://www.haifux.org)
To unsub send an empty message to [EMAIL PROTECTED]




Reply via email to