I'm currently working on process accounting programs for an SCO - UNIX
I'm aware of the fact that this information can be obtained through
sadd and pacct, but for purposes of efficiency I need to obtain the
information directly from the kernel.
I'm basing my work on the use of sys/sysinfo.h. This approach,
however, is inadequate.
Specifically, I require advice or reference to pertinent documentation
concerning the following:
1. Which are the kernel data structures where data on disk and network
utilization are stored?
2. How can I read the information stored in files generated by sadc
(without using sar), and how should I correlate disk information
(field devio[NDEVS] from the struct sa) with the respective
3. Which are the required steps to obtain process information from the
4. Is there a public-domain version of the ps source code so that I
can learn how to obtain process information?