Re: bus_base() in kernel space

Richard Henderson (rth@twiddle.net)
Tue, 19 Jan 1999 19:13:37 -0800


On Tue, Jan 19, 1999 at 11:39:41AM -0800, Linux Lists wrote:
> Quick question: what's the equivalent of the user space function
> bus_base() in kernel space ?? Is it a function or a constant ??

Presumably you are referring to the Alpha libc function of that name?
Things work differently in the kernel.

In kernel space you should ioremap the space you are interested in,
then use read/write[bwlq] to access the data.

See linux/Documentation/IO-mapping.txt.

r~

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/