FreeBSD/sys/dev/xen/blkback/blkback.c
/**
 * Report an attach time error to the console and Xen, and cleanup
 * this instance by forcing immediate detach processing.
 *
 * \param xbb  Per-instance xbb configuration structure.
 * \param err  Errno describing the error.
 * \param fmt  Printf style format and arguments
 */
Report an attach time error to the console and Xen, and cleanup
this instance by forcing immediate detach processing.

\param xbb  Per-instance xbb configuration structure.
\param err  Errno describing the error.
\param fmt  Printf style format and arguments
Report an attach time error to the console and Xen and cleanup this instance by forcing immediate detach processing . \ param xbb Per - instance xbb configuration structure . \ param err Errno describing the error . \ param fmt Printf style format and arguments
static void
xbb_attach_failed(struct xbb_softc *xbb, int err, const char *fmt, ...)
{
	va_list ap;
	va_list ap_hotplug;
	va_start(ap, fmt);
	va_copy(ap_hotplug, ap);
	xs_vprintf(XST_NIL, xenbus_get_node(xbb->dev),
		  "hotplug-error", fmt, ap_hotplug);
	va_end(ap_hotplug);
	xs_printf(XST_NIL, xenbus_get_node(xbb->dev),
		  "hotplug-status", "error");
	xenbus_dev_vfatal(xbb->dev, err, fmt, ap);
	va_end(ap);
	xs_printf(XST_NIL, xenbus_get_node(xbb->dev),
		  "online", "0");
	mtx_lock(&xbb->lock);
	xbb_shutdown(xbb);
	mtx_unlock(&xbb->lock);
}
static void xbb_attach_failed ( struct xbb_softc * xbb , int err , const char * fmt , ... ) { va_list ap ; va_list ap_hotplug ; va_start ( ap , fmt ) ; va_copy ( ap_hotplug , ap ) ; xs_vprintf ( XST_NIL , xenbus_get_node ( xbb -> dev ) , " " , fmt , ap_hotplug ) ; va_end ( ap_hotplug ) ; xs_printf ( XST_NIL , xenbus_get_node ( xbb -> dev ) , " " , " " ) ; xenbus_dev_vfatal ( xbb -> dev , err , fmt , ap ) ; va_end ( ap ) ; xs_printf ( XST_NIL , xenbus_get_node ( xbb -> dev ) , " " , " " ) ; mtx_lock ( & xbb -> lock ) ; xbb_shutdown ( xbb ) ; mtx_unlock ( & xbb -> lock ) ; }
Report an attach time error to the console and Xen, and cleanup
 this instance by forcing immediate detach processing.
Report an attach time error to the console and Xen and cleanup this instance by forcing immediate detach processing .