Writing Device Drivers

print(9E)

int xxprint(dev_t dev, char *str)

The print(9E) entry point is called by the system to display a message about an exception it has detected. print(9E) should call cmn_err(9F) to post the message to the console on behalf of the system. Here is an example:

static int
 xxprint(dev_t dev, char *str)
 {
 	cmn_err(CE_CONT, "xx: %s\n", str);
 	return (0);
 }