Lines Matching refs:shp
65 static sysevent_handle_t *shp;
94 shp = sysevent_bind_handle(sysevent_dev_handler);
95 if (shp == NULL) {
103 if (sysevent_subscribe_event(shp, EC_DEV_ADD, subcl, 3) != 0) {
105 sysevent_unbind_handle(shp);
108 if (sysevent_subscribe_event(shp, EC_DEV_REMOVE, subcl, 3) != 0) {
110 sysevent_unbind_handle(shp);
115 if (sysevent_subscribe_event(shp, EC_DEV_BRANCH, subcl, 1) != 0) {
117 sysevent_unbind_handle(shp);
142 if (sysevent_subscribe_event(shp, EC_PWRCTL, subcl, 6) != 0) {
144 sysevent_unbind_handle(shp);
149 if (sysevent_subscribe_event(shp, EC_DEVFS, subcl, 1) != 0) {
151 sysevent_unbind_handle(shp);
156 if (sysevent_subscribe_event(shp, EC_DR, subcl, 1) != 0) {
159 sysevent_unbind_handle(shp);
169 sysevent_unbind_handle(shp);
170 shp = NULL;