Hardware interactions on Linux
Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system? iopl(2) and inb(0x61) don't seem to work very nicely... Infact, inb(0x61) gives me a segfault.
PS: My reliance on this forum is starting to become embarrassing :P
Crushyerbones
Junior Poster in Training
53 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
>>Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system?
Yes -- you can not use them because the os won't let you access the ports directly.
>>Infact, inb(0x61) gives me a segfault.
Yup :)
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system?
Yes -- you can not use them because the os won't let you access the ports directly.
>>Infact, inb(0x61) gives me a segfault.
Yup :)
Damn... My XP machine is also running the same program (modified for windows, obviously) kinda funky... And there's no way I'm getting Vista back on my laptop :P
Crushyerbones
Junior Poster in Training
53 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
No version of MS-Windows since Win95 nor any version of *nix will allow you to use those inp and outp functions. So putting Vista back won't help you either.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
No version of MS-Windows since Win95 nor any version of *nix will allow you to use those inp and outp functions. So putting Vista back won't help you either.
I know, that's why I said modified for windows. As in replacing inb and outb with inportb and outportb.
Crushyerbones
Junior Poster in Training
53 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1
Better late than never. Many thanks, this problem cost me a good grade last year :)
Crushyerbones
Junior Poster in Training
53 posts since Mar 2008
Reputation Points: 10
Solved Threads: 1