Re: Slightly OT: accessing I/O ports under Linux?

From: John R. Ackermann (terhi.victor@logonet.com)
Date: Sun Jul 22 2001 - 00:23:55 EEST

  • Next message: Mark: "RedHat 5.2 - AX25"

    Good news! Thanks!

    73,
    John

    --On Sunday, July 22, 2001 7:14 AM +1000 Hamish Moffatt
    <rtxnbarw.ruanfxxcfp@s-tyneside.sch.uk> wrote:

    > On Sat, Jul 21, 2001 at 04:26:53PM -0400, John R. Ackermann wrote:
    >> Is it possible to do this under Linux without having to write a kernel
    >> driver? I'm envisioning a daemon that would run constantly, dumping
    >> data values to a disk file for later processing. I'm just not sure if
    >> a user-space program under Linux has the ability to access I/O ports
    >> directly.
    >
    > Sure.. There's even a mini-HOWTO about it, called IO-Port-Programming.
    >
    > It's not too tricky. There are inb() and outb() functions defined in
    > <sys/io.h>, and you just have to make a couple of other library calls
    > to get the necessary permissions.
    >
    >
    > cheers,
    > Hamish
    > --
    > Hamish Moffatt VK3SB <gpnp@nefab.se> <llbu@shorcan.com>
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    > the body of a message to terhi.victor@logonet.com
    >
    >

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to gjpibwb@bluedns.nl



    This archive was generated by hypermail 2b30 : Sun Jul 22 2001 - 00:35:14 EEST