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

From: Hamish Moffatt (terhi.victor@logonet.com)
Date: Sun Jul 22 2001 - 00:14:39 EEST

  • Next message: John R. Ackermann: "Re: Slightly OT: accessing I/O ports under Linux?"

    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 <terhi.victor@logonet.com> <svp.jyaqetdmfj@lbp.nl>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to qqym.mjmql@iti-theatres.com
    



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