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 Reference > G


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


gettune — get the value of a kernel tunable parameter


#include <sys/dyntune.h> int gettune(const char *tunable, uint64_t *value);


This function retrieves the current value of the kernel tunable parameter named tunable. The value is passed back through the supplied value pointer. The value returned is the value for the tunable that is being used by the currently running kernel.


This function returns zero for success, or -1 for an error.


If this function returns -1 to indicate an error, the global variable errno will be set to one of the following values, to indicate the error that occurred:


The specified tunable parameter does not exist.


The Kernel Registry Service was unavailable or encountered an error.


tunable or value specifies an address that is inaccessible.


Some tunables have signed integer values. For these tunables, the caller must cast the returned value to an int64_t type before using it. To find out which tunables have signed integer values, use the tuneinfo2(2) system call, or consult the tunable parameter man pages.


gettune() was developed by Hewlett-Packard Company.


settune(2), tuneinfo2(2), and the individual tunable parameter man pages in section 5.

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