Re: kernel space in user space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sauro Salomoni (sauro@xxxxxxxxxxx) wrote:
> Good morning
> 
> I would like to know how I can use kernel space system calls (like 
> inb/outb) or macros (readb/writeb) in user space. Is it enough to just 
> use iopl(3)?
> I'm working with a Lite5200 PowerPC, using denx 2.4.25 kernel, and I 
> need to write into several registers. But in "Linux Device Drivers", by 
> Alessandro Rubini, it's said that iopl is intel specific, although in 
> the man page it's said it's LINUX specific...

It is not implemented for PPC :
http://lxr.linux.no/source/arch/ppc64/kernel/syscalls.c?v=2.4.26#L55

> Could anyone give a helping hand here? Maybe an example program on user 
> space iopl + inb/outb?

Don't have any idea and hardware to test something.
--
Amicalement/Regards

Christophe Lucas - c.lucas@xxxxxxxxxxx - Registered User #271267

 * GNU/Linux developer/network administrator
 * Membre du RotomaLUG (LUG de la région Rouennaise)
   (http://www.rotomalug.org)
 * http://odie.mcom.fr/~clucas/

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux