FreeBSD/sys/dev/xen/pcifront/pcifront.c
/* Process a probe from the xenbus */
Process a probe from the xenbus
Process a probe from the xenbus
static int
pcifront_probe(struct xenbus_device *xdev,
			   const struct xenbus_device_id *id)
{
	int err = 0;
	struct pcifront_device *pdev;
	DPRINTF("xenbus probing\n");
	if ((pdev = alloc_pdev(xdev)) == NULL)
		goto out;
	err = pcifront_publish_info(pdev);
 out:
	if (err)
		put_pdev(pdev);
	return err;
}
static int pcifront_probe ( struct xenbus_device * xdev , const struct xenbus_device_id * id ) { int err = 0 ; struct pcifront_device * pdev ; DPRINTF ( " \n " ) ; if ( ( pdev = alloc_pdev ( xdev ) ) == NULL ) goto out ; err = pcifront_publish_info ( pdev ) ; out : if ( err ) put_pdev ( pdev ) ; return err ; }
Process a probe from the xenbus
Process a probe from the xenbus