UIO Devices and user processes

Yann Droneaud ydroneaud at opteya.com
Tue Oct 6 11:04:39 EDT 2015


Hi,

Le mardi 06 octobre 2015 à 10:46 -0400, Kenneth Adam Miller a écrit :
> Let me be more precise in general to the overall original question:
> 
> I want a userland process that I designate to only use a specific
> hard coded region physical of memory for it's heap. A UIO driver is
> the means by which I've gone about seeking to achieve this. 
> 

You want brk() and mmap(..., MAP_ANONYMOUS, ...)  to allocate pages
from a contigous physical memory region.

You don't give the reason for such requirement. Without a proper reason
it's difficult to understand what's your trying to achieve.

I can only propose you to use something like CONFIG_MMU=n, but as it's
a system wide choice with multiple drawbacks, I don't think it's
something you want to investigate into.

Regards.

-- 
Yann Droneaud
OPTEYA




More information about the Kernelnewbies mailing list