Linux-SRT User's Manual (5) - /proc filesystem

Summary

/proc/sched Global QOS status file
/proc/events Kernel event sources
/proc/reserves  Lists reserve names and parameters

/proc/sched

This file can be parsed as follows:

fscanf(fp, "%d %d", &ppm, &rsvd)

/proc/events

Lists the available kernel event source names, one per line. For example:

sys-exec
sched-param

/proc/reserves

Lists all reserves (named and automatic) known to the kernel, one per line. Each line can be parsed as follows:

fscanf(fp, "%d, Policy %c (%c), Period %d, CPU %d, "
           "Pri %d, Nice %d <%[^>]>",
           &members, &policy, &overrun_policy, &period,
           &slice, &static_priority, &nice, rsv_name)

A typical line is:

0, Policy Q (P), Period 100, CPU  50, Pri  0, Nice   0 <half>

Columns are also aligned for easy parsing by humans.