From owner-freebsd-hackers Tue Oct 7 15:23:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA27779 for hackers-outgoing; Tue, 7 Oct 1997 15:23:06 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA27770 for ; Tue, 7 Oct 1997 15:23:01 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA03019; Wed, 8 Oct 1997 00:22:59 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id AAA11590; Wed, 8 Oct 1997 00:04:04 +0200 (MET DST) Message-ID: <19971008000403.RT08354@uriah.heep.sax.de> 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 References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from mdean on Oct 6, 1997 23:49:55 -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. ;-)