The Linux proc Filesystem

Kernel Background

The kernel keeps its information about processes in several structures defined in /usr/icnlude/linux/sched.h The most important one, the task structure is explained first. It contains all information the scheduler needs.

The task structure

hardcoded
TypeNameDescription
volatile long state -1 unrunnable, 0 runnable, >0 stopped
longcounter internal value for scheduling
longpriority Priority of the task
unsinged longsignal pending signals (ORed)
unsigned longblocked blocked signals
unsigned longflags Flags as defined below.
interrno

Helmut Geyer
Last modified: Fri Jul 12 13:22:20 MET DST