Re: smp/non-smp kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 3/7/07, Rajat Jain <rajat.noida.india@xxxxxxxxx> wrote:
> >
> I want to write one module which tells me whether machine is booted with
> smp/or non-smp kernel.

Here is your module:

static void mod_init()
{
#ifdef CONFIG_SMP
    printk("SMP Kernel");
#else
    printk("Non - SMP Kernel");
#endif
}

module_init(mod_init);


Thank you very much, this clears my confusion. : )

-mln

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux