<div dir="ltr"><div class="im" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="im" style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="im" style="font-family:arial,sans-serif;font-size:13px">
>> I know we have CONFIG_X86_64 and CONFIG_X86_32 for x86 architecture but<br>> how do I exactly check it in my module code?<br><br></div><span style="font-family:arial,sans-serif;font-size:13px">>>I'm totally failing to understand why '#ifdef CONFIG_X86_64' isn't sufficient?</span><br>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">'#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.</font><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Regards,</font></div><div><font face="arial, sans-serif">Saket Sinha</font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div>