FreeBSD/sys/dev/xen/pcifront/pcifront.c
/* The backend is closing so process a disconnect */
The backend is closing so process a disconnect
The backend is closing so process a disconnect
static int
pcifront_disconnect(struct pcifront_device *pdev)
{
	int err = 0;
	XenbusState prev_state;
	prev_state = xenbus_read_driver_state(pdev->xdev->nodename);
	if (prev_state < XenbusStateClosing) {
		err = xenbus_switch_state(pdev->xdev, NULL, XenbusStateClosing);
		if (!err && prev_state == XenbusStateConnected) {
		}
	}
	return err;
}
static int pcifront_disconnect ( struct pcifront_device * pdev ) { int err = 0 ; XenbusState prev_state ; prev_state = xenbus_read_driver_state ( pdev -> xdev -> nodename ) ; if ( prev_state < XenbusStateClosing ) { err = xenbus_switch_state ( pdev -> xdev , NULL , XenbusStateClosing ) ; if ( ! err && prev_state == XenbusStateConnected ) { } } return err ; }
The backend is closing so process a disconnect
The backend is closing so process a disconnect
/* TODO - need to detach the newbus devices */