Re: 2.1.32 asm/io.h included from userspace

Systemkennung Linux (
Mon, 7 Apr 1997 19:39:53 +0200 (MET DST)


> Bad things happen if one tries to include asm/io.h from userspace.
> The attachement is an ugly "fix" for the worst.
> BTW I'm doing this only to get the outb macro, maybe I should
> put my own outb macro into my sources?
> NOTE: linux/vmalloc.h is included from asm-i386/io.h

If you care about portability between systems that use Intel style
peripherals and therefore ports you should best use /dev/port.
asm/io.h is a kernel header file that especially on Intel works
fine for user stuff; even just including it might be a bad idea
on another architecture than Intel.