Compressed Dump
Compressed Dump White Paper, Version 1.3
page 11
index into an array of error messages. The error message strings
are defined in CCERR_STRINGS (see below).
> 0 Warning, The corresponding device has been configured but
there is one or more notes or warnings associated with the
device. The returned value is a bitmap of warnings. the warning
message strings are defined in CCWARN_STRINGS (see
below).
Any parameters which are not used for the given operation should be set to zero.
Note that both devices and deviceReturn must be specified if DC_DEVICES is
specified.
Classes
The following system memory classes have been defined as of this writing. Refer to
the output of crashconf(1M) or to /usr/include/sys/crashconf.h for definitions of any
classes added since publication. The memory page size is 4Kb.
DT_UNUSED Unused physical memory pages
DT_KCODE Kernel code pages
DT_BCACHE Buffer cache data pages
DT_KSDATA Kernel static data pages
DT_KDDATA Kernel dynamic data pages
DT_FSDATA File system metadata pages
DT_USTACK User process stack pages
DT_SUPERPG Unused super page pool pages
DT_USERPG User process pages
EXAMPLES
The following examples demonstrate the usage of crashconf().
Example 1: Adding a Crash Dump Device
char *device_to_add[1];
int device_return[1];
...
crashconf(DC_DEVICES, 0, 0, 1, device_to_add,device_return);
Example 2: Force Dumping of Buffer Cache
crashconf(DC_INCLUDE, DT_BCACHE, 0, 0, NULL, NULL);
Example 3: Disable Dumps
crashconf(DC_EXCLUDE | DC_REPLACE, 0, DT_ALL,
0, NULL, NULL);