[uClinux-dev] How to use ioremap in a program

Gavin Lambert gavinl at compacsort.com
Mon Nov 19 01:21:21 EST 2007


Quoth Siegfried Müller:
> I want to use ioremap in user-program and not in a driver. I tried to
> compile my program, but i got the error "undefined reference to
> __ioremap". What must i do in the makefile to get this compiled? (i
> already inlcuded asm/io.h)

AFAIK, you can't.  If you're using a platform that requires ioremap be
called, then chances are good that direct I/O will be blocked from userspace
and you'll need to do it in-kernel anyway.  (Though I could be wrong about
this, of course.)

> Well, i know it is dirty to use direct io-access in a user program, 
> but i need a fast access.

Fast from what perspective?  Userspace itself is not fast.





More information about the uClinux-dev mailing list