FreeBSD/sys/dev/xen/netfront/netfront.c
/**
 * Entry point to this code when a new device is created.  Allocate the basic
 * structures and the ring buffers for communication with the backend, and
 * inform the backend of the appropriate details for those.  Switch to
 * Connected state.
 */
Entry point to this code when a new device is created.  Allocate the basic
structures and the ring buffers for communication with the backend, and
inform the backend of the appropriate details for those.  Switch to
Connected state.
Entry point to this code when a new device is created . Allocate the basic structures and the ring buffers for communication with the backend and inform the backend of the appropriate details for those . Switch to Connected state .
static int
netfront_probe(device_t dev)
{
	if (xen_hvm_domain() && xen_disable_pv_nics != 0)
		return (ENXIO);
	if (!strcmp(xenbus_get_type(dev), "vif")) {
		device_set_desc(dev, "Virtual Network Interface");
		return (0);
	}
	return (ENXIO);
}
static int netfront_probe ( device_t dev ) { if ( xen_hvm_domain ( ) && xen_disable_pv_nics != 0 ) return ( ENXIO ) ; if ( ! strcmp ( xenbus_get_type ( dev ) , " " ) ) { device_set_desc ( dev , " " ) ; return ( 0 ) ; } return ( ENXIO ) ; }
Entry point to this code when a new device is created.
Entry point to this code when a new device is created .