Hello, I am writing a kernel module, and I want to get the number of CPU. If the machine is UP, the value returned will be 1, but if the machine is SMP, the value returned will be the number of CPU available. But I dont know which kernel function I must use to get that value. Anybody please help me? Thank you a lot, Hieu -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/