previous | start | next

Kernel Process Table Entries

The entries in the kernel's process table array are C struct's:

struct proc {
        struct stackframe_s p_reg;/* process' registers saved in stack
        frame */

        ...
        short p_rts_flags;/* process is runnable only if zero */
        ...
        char p_priority;/* current scheduling priority */
        char p_max_priority;/* maximum scheduling priority */
        char p_ticks_left;/* number of scheduling ticks left */
        char p_quantum_size;/* quantum size in ticks */
        ...
};

   


previous | start | next