<p>It checks whether exception happened in user mode or supervisor mode</p>
<div class="gmail_quote">On Jun 20, 2012 5:15 PM, "sumeet linux" <<a href="mailto:sumeet4linux@gmail.com">sumeet4linux@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<div><br></div><div><div><div>What is the meaning of user_mode(regs) macro ? What does it do ?</div><div>This macro used in many files in kernel like signal.c, trap.c, process.c files.</div><div>From the code it looks like it checks is in USER mode or KERNEL mode, but still not clear on usage and implementation of this macro.</div>
</div></div><div><br></div><div>Thanks.</div><div><br></div><div>Regard,</div><div>Sumeet</div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div>