> Looks like num_online_cpus() is not exported, so it is impossible to > use it from a module, isnt it? I think it's possible. For example, microcode.c uses num_online_cpus() and can compile as a module. http://lxr.linux.no/source/arch/i386/kernel/microcode.c#L252 http://lxr.linux.no/source/arch/i386/kernel/microcode.c#L510 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/