kconfig.5 (2010 09)

k
kconfig(5) kconfig(5)
If there are changes to the currently running kernel configuration that are being held for reboot, those
changes are reflected in the system file
/stand/system.
LOG FILE
The kernel configuration commands maintain a log file that describes all kernel configuration changes.
This log file is located at
/var/adm/kc.log. The kclog command can be used to search and view the
log file, or to make entries that dont correspond to configuration changes.
When making a configuration change using any of the commands, you can specify a
-C comment option.
The commands will include the specified comment in the log file entry describing the change. Note that
the comment usually must be quoted to avoid interpretation by the shell.
Some configuration changes can be made without using the kernel configuration commands. No log file
entries are made for such changes.
The format of the log file may be changed without notice. Programs must use the
kclog
command to
retrieve entries from the file rather than attempting to parse the file format.
DIAGNOSTICS
All error, warning, and note messages printed by the kernel configuration commands are numbered. For
aesthetic reasons, the message numbers are not usually displayed. To enable display of the message
numbers, set the environment variable
KC_SHOW_MSGIDS
to 1.
PARSING OUTPUT
Most of the kernel configuration commands produce tabular output describing the details of a
configuration. Such output may be attractive for humans, but can be difficult for scripts and applications
to parse. Also, the tabular output format can change at any time: for example, between different types of
systems or between releases of HP-UX.
For these reasons, each of the kernel configuration commands that produce such output accept a -P
option, which changes the output format. The -P format is designed to be easy to parse, and is
guaranteed not to change. HP will not support applications and scripts which parse the output of the
kernel configuration commands unless they use the -P option.
The
-P option must be followed by a comma-separated list of field names. Each kernel configuration
command supports a different set of field names; refer to the man page for the command for a list. The
field names must appear in a single argument, so there should be no spaces anywhere in the list. For
example,
kcmodule -P name,state,desc
The kernel configuration command will produce output that consists of a series of lines describing one
object, a blank line, a series of lines describing the next object, a blank line, and so on until all objects are
described. Each line in the series consists of a field name, a single tab character (ASCII 9), and the value
of that field for the object being described. The lines occur in the same order as requested. So the above
command might produce this output:
name module1
state loaded
desc This is the first sample module.
name module2
state unused
desc This is a different sample module.
Some fields may occur multiple times within an object, or may not occur at all. This will be noted in the
description of the field. For example, the command
kcmodule -P name,state,depend
might produce this output:
name module1
state loaded
name module2
state unused
depend module1
depend module4
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3