question about alloc_bootmem

javaweb zhang javawebzwp at gmail.com
Fri Apr 15 01:49:01 EDT 2011


Hello, everyone. I use alloc_bootmem() in profile.c to allocate a big memory
at function profile_init(), how I know whether it is success? The following
is my code:
// at kernel/profile.c
ctxsw_A = (struct ctxsw_rec *)alloc_bootmem(sizeof(struct ctxsw_rec)*CTXSW);

ctxsw_rec is a struct which declared in include/linux/profile.h,  CTXSW =
4>>10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110415/6bf55b7a/attachment.html 


More information about the Kernelnewbies mailing list