From mboxrd@z Thu Jan 1 00:00:00 1970 From: ydroneaud@opteya.com (Yann Droneaud) Date: Tue, 06 Oct 2015 17:04:39 +0200 Subject: UIO Devices and user processes In-Reply-To: References: <20151006052157.GA16343@kroah.com> <1444139935.3188.43.camel@opteya.com> <1444141921.3188.51.camel@opteya.com> Message-ID: <1444143879.3188.60.camel@opteya.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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