Re: Determining 32bit or 64bit OS from a running kernel module

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

 





>> I know we have CONFIG_X86_64 and CONFIG_X86_32 for  x86 architecture but
> how do I exactly check it in my module code?

>>I'm totally failing to understand why '#ifdef CONFIG_X86_64' isn't sufficient?

'#ifdef CONFIG_X86_64 is working for me but I couldn't  find it being used by drivers in the kernel source tree so I guessed people were doing it by some better, smarter method.

Regards,
Saket Sinha


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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