Linux Process Source Code Pointers

Processes and threads are fundamental abstractions in the operating system. To support processes and threads, the OS uses two key data structures: task_struct and thread_info; as well as a host of auxiliary functions for managing processes and threads in the system.

The arch/arm/include/asm/thread_info.h file declares the thread_info structure.

The include/linux/sched.h file declares the task_struct structure, along with many process management functions.

The arch/arm/include/asm/switch_to.h file defines an ARM architecture specific macro for the switch_to process switch routine, and the arch/arm/kernel/entry-armv.S file implements the __switch_to assembly level process switch routine that is used by that macro.