[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: restoring of pt_regs regs in context switch




I also have a questions about struct pt_regs, how to get pt_regs in my module,Does kernel provide a API to get that?

2008/12/8 Stephane Lambert <stephane.lambert@xxxxxxxxxx>
Hello all
I have a question concerning context switch :
When and how does the content of 'regs' (struct pt_regs)  is restored during context switch?
(especially fn, arg, and kernel_thread_helper() address, set in kernel_thread() in order to call fn(arg)).

Thanks in advance for your responses.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ