Re: How do I access ioports from userspace?

From: Jes Sorensen
Date: Fri Sep 26 2003 - 03:57:51 EST


>>>>> "Ben" == Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> writes:

Ben> On Fri, 2003-09-26 at 09:34, Frank v Waveren wrote:
>> in[bwl]/out[bwl] are available on a lot more than just x86. Mind
>> you, the mechanisms are subtly different. Then again, if you're
>> using direct hardware access you're not going for portability
>> anyway.

Ben> Are they from userland ? I doubt it...

Actually yes on some architectures, ia64 emulates it the ia32
API. That said, it's certainly not something one should be encouraged
to do, using MMIO is a far better approach.

Cheers,
Jes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/