FreeBSD/sys/dev/xen/blkback/blkback.c
/*---------------------------- NewBus Entrypoints ----------------------------*/
/**
 * Inspect a XenBus device and claim it if is of the appropriate type.
 * 
 * \param dev  NewBus device object representing a candidate XenBus device.
 *
 * \return  0 for success, errno codes for failure.
 */
NewBus Entrypoints
Inspect a XenBus device and claim it if is of the appropriate type.

\param dev  NewBus device object representing a candidate XenBus device.

\return  0 for success, errno codes for failure.
NewBus Entrypoints Inspect a XenBus device and claim it if is of the appropriate type . \ param dev NewBus device object representing a candidate XenBus device . \ return 0 for success errno codes for failure .
static int
xbb_probe(device_t dev)
{
        if (!strcmp(xenbus_get_type(dev), "vbd")) {
                device_set_desc(dev, "Backend Virtual Block Device");
                device_quiet(dev);
                return (0);
        }
        return (ENXIO);
}
static int xbb_probe ( device_t dev ) { if ( ! strcmp ( xenbus_get_type ( dev ) , " " ) ) { device_set_desc ( dev , " " ) ; device_quiet ( dev ) ; return ( 0 ) ; } return ( ENXIO ) ; }
NewBus Entrypoints
 Inspect a XenBus device and claim it if is of the appropriate type.
NewBus Entrypoints Inspect a XenBus device and claim it if is of the appropriate type .