From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10539 invoked from network); 25 Jul 1998 01:28:29 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 25 Jul 1998 01:28:29 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id DAA19105; Sat, 25 Jul 1998 03:26:11 +0200 Date: Sat, 25 Jul 1998 03:26:11 +0200 Message-Id: <199807250126.DAA19105@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: <199807242338.BAA31408@vmax.unix-ag.uni-siegen.de> (message from Nils Faerber on Sat, 25 Jul 1998 01:38:40 +0200 (DFT)) Subject: Re: AXPpci33 diagnostic LED driver ready! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.1.108 i586) References: <199807242338.BAA31408@vmax.unix-ag.uni-siegen.de> Hi Nils ! > The second is the mostly useless but nice knight-rider type running light, > i.e. just one LED 'moving' from left to right and vice versa. > Any comments about the driver, enhancements or additional programs are > welcome! Hmm. kernel-timer programming is really easy. Just make Linux the first operating system with kernel knight-rider support ;-} Your procled.c should be in kernel too. (selectable by insmod-args and mode-switchable by ioctls...) You have no read support, why not simply keep the last *LED1 = c; value in a static variable ? Ok, now the only really good question... Why do you register a character device (means wasting a major #) instead of only registering a proc entry ? ciao - Stefan -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com