Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 1997 00:04:03 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@FreeBSD.ORG
Cc:        mdean@best.com (mdean)
Subject:   Re: Device Drivers
Message-ID:  <19971008000403.RT08354@uriah.heep.sax.de>
In-Reply-To: <Pine.SGI.3.95.971006234141.3491A-100000@shellx.best.com>; from mdean on Oct 6, 1997 23:49:55 -0700
References:  <Pine.SGI.3.95.971006234141.3491A-100000@shellx.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971008000403.RT08354>