Memory allocation during linux booting? -


i have tried search topic on google , site can't find proper answer.

i trying allocate big continuous block of memory (a few mb) @ set physical address during linux booting process. still not clear should place "alloc_bootmem" function. running linux on arm processor.

  1. afaik, there way create driver contains call "alloc_bootmem" , compile driver directly kernel.

  2. another method add "alloc_bootmem" somewhere in linux kernel source.

  3. the last method think exists create settings file boot.rc?(not sure) during booting linux reserve memory want allocated.

if there clear way or link answer question, appreciate everyone's help. basic question "where should call "alloc_bootmem" work during booting?"

thanks, shahril

take at: http://lwn.net/kernel/ldd3/ chapter 8 explains memory allocation booting stages.

further information booting memory allocation can found here:

https://www.kernel.org/doc/gorman/html/understand/understand022.html

this feature used allocating large memory chunks during system boot , uses physical rather virtual memory. after mmu , running there no possible way of accessing memory afaik

if looking large continues memory allocation should use different allocator take at:

http://lwn.net/articles/396702/


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -