kernel stack for linux process

后端 未结 4 908
自闭症患者
自闭症患者 2021-01-31 18:35

Is the kernel stack for all process shared or there is a seperate kernel stack for each process? If it is seperate for each process where is this stack pointer stored? In task_s

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 19:27

    The book "Linux kernel Development" of Robert Love has a good explanation about process kernel stack.

    And yes, each process has its own kernel stack and if I´m not wrong its pointer is stored on thread_info structure. But I´m not really sure about it, and the struct task_struct is stored on beginning or the end of process kernel stack, depending of CPU architecture.

    Cheers. Carlos Maiolino

提交回复
热议问题