Installation guide

The loadable kernel module does not include platform specific code (such as
the location of status registers). It is transparent to the kernel module
which options are supported by a platform. That is, the kernel module and
platform are designed to return valid data if an option is supported, a fixed
constant for unsupported options, or null.
13.7.1.1.1 Specifying Loadable Kernel Attributes
The loadable kernel module exports the parameters listed in Table 13–1 to
the kernel configuration manager (CFG).
Table 13–1: Parameters Defined in the Kernel Module
Parameter Purpose
env_current_temp
Specifies the current temperature of the system. If a
system is configured with the KCRCM module, the
temperature returned is in Celsius. If a system does
not support temperature readings and a temperature
threshold has not been exceeded, a value of -1 is
returned. If a system does not support temperature
readings and a temperature threshold is exceeded, a
value of -2 is returned.
env_high_temp_thresh
Provides a system specific operating temperature
threshold. The value returned is a hardcoded,
platform specific temperature in Celsius.
env_fan_status
Specifies a noncritical fan status. The value returned
is a bit value of zero (0). This value will differ when
the hardware support is provided for this feature.
env_ps_status
Provides the status of the redundant power supply.
On platforms that provide interrupts for redundant
power supply failures, the corresponding error status
bits are read to determine the return value. A value of
1 is returned on error; otherwise, a value of zero (0) is
returned.
env_supported
Indicates whether or not the platform supports server
management and environmental monitoring.
13.7.1.1.2 Obtaining Platform Specific Functions
The loadable kernel module must return environmental status based on the
platform being queried. This section describes the kernel interfaces used. To
obtain environmental status, the get_info() function is used. Calls to the
get_info() function are filtered through the platform_callsw[] table.
13–26 Administering Events and Errors