The sched_init() Function

Sched_init() is located in kernel/sched.c.

Sched_init() initializes the kernel's pidhash[] table, a lookup table for quickly mapping process IDs to process descriptors used by the kernel. The sched_init() function then initializes the vectors and bottom-half handlers used by the kernel's various internal timers.