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

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Oct 24 12:05:44 EDT 2013


On Wed, 23 Oct 2013 18:24:24 +0530, Saket Sinha said:

> '#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.

The "better smarter method" is almost always "write code that's 32/64 bit
clean".  What exactly were you doing that 32 or 64 bit actually mattered?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131024/0c65350e/attachment.bin 


More information about the Kernelnewbies mailing list