print(D2DK) —
NAME
print − display a driver message on the system console
SYNOPSIS
#include <sys/types.h>
#include <sys/errno.h>
int prefixprint(dev_t dev, char ∗str);
ARGUMENTS
devDevice number.
strPointer to a NULL-terminated character string describing the problem.
DESCRIPTION
The print routine is called indirectly by the kernel for the block device when the kernel has detected an exceptional condition (such as out of space) in the device. The driver should print the message on the console along with any driver-specific information. To display the message on the console, the driver should use the cmn_err(D3DK) function.
NOTES
This entry point is optional. The driver should not try to interpret the text string passed to it. The driver’s print routine should not call any functions that sleep.
RETURN VALUE
Ignored.
SEE ALSO
cmn_err(D3DK)
DDI/DKI