> 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. > I think NR_CPUS give the number of the cpu in the system. You can use it -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/