Reg:current a pointer to task_struct

From: SATHISH.J (sathish.j@tatainfotech.com)
Date: Mon Jun 18 2001 - 03:35:35 EST


Hi,

Please help me with the following:

I tried to go through get_current function which is in assembly.

static inline struct task_struct * get_current(void) {
        struct task_struct *current;
        __asm__("andl %%esp,%0; ":"=r" (current) : "0" (~8191UL));
        return current;
 }

Please tell me what is done here. Does current refer to process onproc.

Thanks in advance,
Regards,
sathish

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:20 EST