Thread (5 messages) 5 messages, 4 authors, 2007-10-08

Re: Where are inb/outb macros?

flat view

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-10-08 08:12:07

On Mon, 2007-10-08 at 00:09 -0700, Misbah khan wrote:
inb/outb could be used from the usr space on x86 class PC-computer to access
to io ports this is what i assume that you are trying 

You need to compile the program with -O option (expantion of Inline function
)

To perform io operation on ports ioprem/iopl system call must be used (To
get permissio to perform io operation)

Program must run as root 

on non 86 platform try using /dev/port device file in the application 
"io ports" don't mean much on non-x86 platforms (or rather can have
multiple meanings) which is why I'm asking what is he trying to od in
the first place.

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help