<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">
&gt;&gt; I know we have CONFIG_X86_64 and CONFIG_X86_32 for  x86 architecture but<br>&gt; how do I exactly check it in my module code?<br><br></div><span style="font-family:arial,sans-serif;font-size:13px">&gt;&gt;I&#39;m totally failing to understand why &#39;#ifdef CONFIG_X86_64&#39; isn&#39;t sufficient?</span><br>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">&#39;#ifdef CONFIG_X86_64 is working for me but I couldn&#39;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>