Subject: Writing a simple device?
To: Tech-kern <tech-kern@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: tech-kern
Date: 07/22/1997 17:22:37
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
program.
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
done?
This device, once (if ever :) completed, will probably be interesting to
other NetBSD users as well..
Thanks a lot,
-jm
--
1503 kHz @ 22:30 EET DST Mon-Fri
---> http://www.jmp.fi/~jmarin/ <---