Subject: Re: Writing a simple device?
To: None <>
From: Mike Long <>
List: tech-kern
Date: 07/22/1997 11:48:39
>Date: Tue, 22 Jul 1997 17:22:37 +0300
>From: Jukka Marin <>
>I would like to write a simple device for NetBSD (1.2 at the moment).
>This device would be opened by a userland program.  It would read a
>few bytes of information from an I/O card and return them to the
>userland program.  It might also receive small commands from the userland
>Where can I look for examples?  Are LKM devices much more complex than
>the "normal" ones?  What if the device needs so CPU attention every now
>and then - can I hook it to some clock interrupt to get some minor tasks

Probably one good place to look would be the i386 busmouse drivers
(lms.c, mms.c, pms.c).  They don't do much more than that.
Mike Long <>      
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken