Re: At what instant process starts using kernel stack ?

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

 



On Wed, Aug 20, 2008 at 3:43 PM, Mayuresh <infinite.questions@xxxxxxxxx> wrote:
>
> A process has both user space stack and kernel space stack. When a system
> call happens, all parameters are either copied to stack or in registers and
> using exception it switches to kernel. As from asmlinkage, I understand
> parameters are passed onto stack. So once in kernel space, all parameters
> are poped from stack, which is user stack.
>
> My query is when does a process starts using kernel stack ?
>

Or to make Zhou's answer simpler: when it starts entering kernel
space. In x86, it happens right when int x80 or syscall/sysenter
handler is executed.

regards,

Mulyadi.

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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux