OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: How to write drivers?

From: Jonathan Schleifer (jswebkeks.org)
Date: Thu May 01 2008 - 13:00:38 CDT


Sviatoslav Chagaev <slavazb.lv> wrote:

> Yes, I even wrote a program which "talks" with the device directly,
> with the help of inb()/outb().

I doubt you could use inb/outb in OpenBSD. The kernel will prevent that.
Just talk with the device in /dev directly - there is really no need to
write a driver. OpenBSD already has an LPT driver that gives access to
it to the userland, so why reinvent the wheel here?

--
Jonathan

[demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]