FreeBSD/sys/dev/xen/pcifront/pcifront.c
/* Called by xenbus when our backend node changes state */
Called by xenbus when our backend node changes state
Called by xenbus when our backend node changes state
static void
pcifront_backend_changed(struct xenbus_device *xdev,
						 XenbusState be_state)
{
	struct pcifront_device *pdev = xdev->data;
	switch (be_state) {
	case XenbusStateClosing:
		DPRINTF("backend closing (%s)\n", xdev->nodename);
		pcifront_disconnect(pdev);
		break;
	case XenbusStateClosed:
		DPRINTF("backend closed (%s)\n", xdev->nodename);
		pcifront_disconnect(pdev);
		break;
	case XenbusStateConnected:
		DPRINTF("backend connected (%s)\n", xdev->nodename);
		pcifront_connect(pdev);
		break;
	default:
		break;
	}
}
static void pcifront_backend_changed ( struct xenbus_device * xdev , XenbusState be_state ) { struct pcifront_device * pdev = xdev -> data ; switch ( be_state ) { case XenbusStateClosing : DPRINTF ( " \n " , xdev -> nodename ) ; pcifront_disconnect ( pdev ) ; break ; case XenbusStateClosed : DPRINTF ( " \n " , xdev -> nodename ) ; pcifront_disconnect ( pdev ) ; break ; case XenbusStateConnected : DPRINTF ( " \n " , xdev -> nodename ) ; pcifront_connect ( pdev ) ; break ; default : break ; } }
Called by xenbus when our backend node changes state
Called by xenbus when our backend node changes state