Allows the kernel and kernel extensions to write to the error log.
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/errids.h>
void
errsave ( buf, cnt)
char *buf;
unsigned int cnt; void errlast (buf, cnt)
char *buf
unsigned int cnt;
The errsave kernel service allows the kernel and kernel extensions to write error log entries to the error device driver. The error record pointed to by the buf parameter includes the error ID resource name and detailed data.
In addition, the errlast kernel service disables any future error logging, thus any error logged with errlast will stay on NVRAM. This service is only for use prior to a pending system crash or stop. The errlast service should only be used in extreme circumstances where the system can not continue, such as the occurance of a machine check.
The errsave kernel service can be called from either the process or interrupt environment.
The errsave service has no return values.
The errlog subroutine.
For more information on error device drivers, see Error Logging Special Files in AIX 5L Version 5.2 Files Reference.
RAS Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.