unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Page:
Section:
Apropos / Subsearch:
optional field



 gettune(2)							  gettune(2)




 NAME
      gettune - get the value of a kernel tunable parameter

 SYNOPSIS
      #include <&lt&lt&lt;sys/types.h>&gt&gt&gt;

      int gettune(const char *tunable,
		  uint64_t   *value);

 DESCRIPTION
      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.

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

 ERRORS
      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:

	   [ENOENT]	The specified tunable parameter does not exist.

	   [EIO]	The Kernel Registry Service was unavailable or
			encountered an error.

	   [EFAULT]	tunable or value specifies an address that is
			inaccessible.

 AUTHOR
      gettune() was developed by Hewlett-Packard Company.

 SEE ALSO
      settune(2), tuneinfo(2).


















 Hewlett-Packard Company	    - 1 -   HP-UX Release 11i: November 2000