HP-UX Reference (11i v2 07/12) - 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 manpages in Section 5.
504 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: December 2007 Update