PRINT(9E) Driver Entry Points PRINT(9E)
print - display a driver message on system console
#include <sys/sunddi.h> int prefixprint
, char *str
Architecture independent level 1 (DDI/DKI). This entry point is required
for block devices.
Device number. str
Pointer to a character string describing the problem.
routine is called by the kernel when it has detected an
exceptional condition (such as out of space) in the device. To display
the message on the console, the driver should use the cmn_err(9F)
function. The driver should print the message along with any driver
routine should return 0
for success, or the appropriate
error number. The print
routine can fail if the driver implemented a
routine that attempted to perform error logging,
but was unable to complete the logging for whatever reason.
SEE ALSO cmn_err(9F) Writing Device Drivers
September 15, 1992 PRINT(9E)