Re: Device Drivers

[ Available lists | Index of freebsd-hackers | Month of Oct 1997 | Week of 7 Oct 1997 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
J Wunsch <j@uriah.heep.sax.de>
Date
7 Oct 1997 15:23:06
Subject
Re: Device Drivers
Message-ID
19971008000403.RT08354@uriah.heep.sax.de

References to
Referenced by

[ Hide this part ]
As mdean wrote:

> d_stop

Stop tty output (i believe)

> d_reset

(Can't find any use of it.)

> d_devtotty

Convert a dev_t into a struct tty *. Useful for tty drivers only,
obviously.

> d_strategy (I've seen this one in another unix book, I just can't remeber
> what it is actually used for)

Something you should read a Unix driver book for. The central IO
routine for `strategy-controlled' IO, like disk drivers.

> and why does d_maj=-1 in the driver when I would think you need to set it
> to the major of your device.

Dynamic major # assignment. The ultimate goal once devfs is running
completely, but currently probably not very useful.

--
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


Elapsed time: 0.116 seconds