user_mode(regs) macro in kernel
Anirban Roy
royanirban at gmail.com
Wed Jun 20 11:26:31 EDT 2012
It checks whether exception happened in user mode or supervisor mode
On Jun 20, 2012 5:15 PM, "sumeet linux" <sumeet4linux at gmail.com> wrote:
> Hi All,
>
> What is the meaning of user_mode(regs) macro ? What does it do ?
> This macro used in many files in kernel like signal.c, trap.c, process.c
> files.
> 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.
>
> Thanks.
>
> Regard,
> Sumeet
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120620/12dc0aae/attachment.html
More information about the Kernelnewbies
mailing list