HP-UX Reference (11i v2 03/08) - 2 System Calls (vol 5)

t
tuneinfo2(2) tuneinfo2(2)
/* 2. Allocate that much space: */
buf = (tuneinfo2_t *)malloc(bufsize);
if (buf == NULL) {
...
}
/* 3. Query the data: */
count = tuneinfo2(TUNEINFO_VERSION, NULL, buf, &bufsize);
if (count < 0) {
...
}
/* 4. Print the names of all tunables: */
for (i = 0; i < count; i++) {
char *name = TUNEINFO_STRING(&buf[i], ti_name);
puts(name);
}
WARNINGS
Applications and application modules must not share tuneinfo2_t
structures unless it is certain that
the value of
TUNEINFO_VERSION
, specified in the
<sys/dyntune.h> header file, is the same for all
modules and involved. The value of
TUNEINFO_VERSION
may be changed without notice.
AUTHOR
tuneinfo2() was developed by Hewlett-Packard Company.
SEE ALSO
kctune(1M), gettune(2), settune(2), and the individual tunable parameter man pages in section 5.
HP-UX 11i Version 2: August 2003 3 Hewlett-Packard Company Section 2461