How early can I call kalloc in an arm linux kernel?

Posted by Isaac Sutherland on Stack Overflow See other posts from Stack Overflow or by Isaac Sutherland
Published on 2010-03-27T00:34:58Z Indexed on 2010/03/27 23:33 UTC
Read the original article Hit count: 153

Filed under:
|
|

I would like to dynamically allocate memory from the machine_init function in my arm linux kernel. Calling kalloc can result in a complete failure of the system to boot.

My debugging tools are very limited so I can't give much more information regarding the failure.

Simply put, is it legal to call kalloc from a machine_init function in arm linux, and, if not, is there an alternative?

© Stack Overflow or respective owner

Related posts about linux

Related posts about arm