Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_devctl.c
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | devctl_init(void) | ||||
} | } | ||||
EVENTHANDLER_REGISTER(device_attach, devctl_attach_handler, | EVENTHANDLER_REGISTER(device_attach, devctl_attach_handler, | ||||
NULL, EVENTHANDLER_PRI_LAST); | NULL, EVENTHANDLER_PRI_LAST); | ||||
EVENTHANDLER_REGISTER(device_detach, devctl_detach_handler, | EVENTHANDLER_REGISTER(device_detach, devctl_detach_handler, | ||||
NULL, EVENTHANDLER_PRI_LAST); | NULL, EVENTHANDLER_PRI_LAST); | ||||
EVENTHANDLER_REGISTER(device_nomatch, devctl_nomatch_handler, | EVENTHANDLER_REGISTER(device_nomatch, devctl_nomatch_handler, | ||||
NULL, EVENTHANDLER_PRI_LAST); | NULL, EVENTHANDLER_PRI_LAST); | ||||
} | } | ||||
SYSINIT(devctl_init, SI_SUB_DRIVERS, SI_ORDER_SECOND, devctl_init, NULL); | SYSINIT(devctl_init, SI_SUB_DRIVERS, SI_ORDER_SECOND, devctl_init); | ||||
/* | /* | ||||
* A device was added to the tree. We are called just after it successfully | * A device was added to the tree. We are called just after it successfully | ||||
* attaches (that is, probe and attach success for this device). No call | * attaches (that is, probe and attach success for this device). No call | ||||
* is made if a device is merely parented into the tree. See devnomatch | * is made if a device is merely parented into the tree. See devnomatch | ||||
* if probe fails. If attach fails, no notification is sent (but maybe | * if probe fails. If attach fails, no notification is sent (but maybe | ||||
* we should have a different message for this). | * we should have a different message for this). | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 389 Lines • Show Last 20 Lines |