Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 64-bit Porting and Transition Guide: HP 9000 Computers > Chapter 5 Writing Portable Code

Using pstat(2) instead of /dev/kmem

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Avoid writing programs that read system files such as /dev/kmem directly. These files may have different formats on different systems. Instead, use the pstat(2) routines to get system information. These routines were first introduced in the HP-UX 10.0 release. Using pstat(2), information can be retrieved about the following:

  • memory — static, dynamic, shared, virtual

  • system CPU processors

  • system processes and messaging

  • disks, swap space, and file systems

  • semaphores

NOTE: The pstat(2) routines are HP-specific routines and are not available on other vendor platforms.

For More Information:

See the pstat(2) man page.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.