Re: registers access in user space deive driver

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

 



Henrik Nordstrom wrote:

> >> For IOIO see iopl
> >>
> >>         iopl - change I/O privilege level
> > how? should I invoke it before inb&outb?
> 
> yes,
> 
> > and the privilege level should be set
> > less than or equal to 3?
> 
> Not entirely sure what the different levels < 3 are. At level 3 you have 
> access to all ports.

Linux doesn't use rings 1 or 2; only levels 0 (kernel) and 3
(user-space) are meaningful. Using 1 or 2 is equivalent to 0, i.e. 
user-space processes can only access those ports which are enabled by
ioperm().

-- 
Glynn Clements <glynn@gclements.plus.com>
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux