How to alloc_pages from a given physical memory?

kipade kipade at 163.com
Thu Jul 6 05:43:36 EDT 2017


In fact, I want to allocate a continous of pages from a given physical 
address for a shm object in

shmem_file_setup, might i should write a customized shmem_file_setup2 
for this?

在 2017年07月06日 17:30, Kamil Konieczny wrote:
>
> On 06.07.2017 11:04, kipade wrote:
>> I use arm 32bit cpu, with kernel 3.14
> banana-pi ? nano-pi ? orange-pi ? odroid ?
>
> Is it memory region for system registers ?
>
>>> On 06.07.2017 05:08, kipade wrote:
>>>> Here I want to allocate a block of shared memory from a given physical
>>>> address, such as 0x90000000, 6M. However, alloc_pages can't fit this
>>>> point. I had reserved enugh pages via cmem, there also have enough
>>>> continous pages for such allocation anywhere else. What should I do?





More information about the Kernelnewbies mailing list