Lines Matching defs:NULL

86 	if (attr_list != NULL) {
89 return (NULL);
112 if (ev == NULL) {
113 return (NULL);
131 if (attr_list == NULL) {
142 return (NULL);
159 if (ev == NULL) {
188 nvlist_t *nvl, *cnvl = NULL;
198 if (copy == NULL)
199 return (NULL);
205 return (NULL);
243 *nvlist = NULL;
248 if (nvl == NULL) {
288 if (attr == NULL) {
290 return (NULL);
303 if (nvp == NULL)
369 return (NULL);
398 nvp = nvlist_next_nvpair(nvl, NULL);
457 * Return NULL if not found or for insufficient memory.
468 if (str == NULL) {
470 return (NULL);
491 if ((pstr = index(pstr, ':')) == NULL)
492 return (NULL);
499 return (NULL);
529 if (part_str != NULL && strstr(part_str, SE_KERN_PUB) != NULL)
532 if ((part_str = pub_idx(pub_str, PUB_PID)) == NULL)
593 if ((class == NULL) || (subclass == NULL) || (vendor == NULL) ||
594 (pub_name == NULL)) {
596 return (NULL);
604 return (NULL);
614 return (NULL);
617 if (pub_id == NULL) {
619 return (NULL);
625 return (NULL);
632 if (ev == NULL) {
634 return (NULL);
649 nvlist_t *attrp = NULL;
658 if (copy == NULL)
659 return (NULL);
671 return (NULL);
687 nvlist_t *attr_list = NULL;
694 if ((vendor = sysevent_get_vendor_name(ev)) != NULL) {
698 if ((pub = sysevent_get_pub_name(ev)) != NULL) {
704 if (sysevent_get_attr_list(ev, &attr_list) == 0 && attr_list != NULL) {
767 if (sub_info->sp_handler_tid == NULL)
772 while (sub_info->sp_evq_head == NULL && SH_BOUND(shp)) {
820 if (args == NULL || alen < sizeof (uint32_t)) {
832 if (shp == NULL) {
853 if (sub_info == NULL) {
861 if (new_eq == NULL) {
872 if (new_eq->sq_ev == NULL) {
881 if (sub_info->sp_evq_head == NULL) {
893 (void) door_return((void *)&ret, sizeof (ret), NULL, 0);
894 (void) door_return(NULL, 0, NULL, 0);
933 door_arg.desc_ptr = NULL;
961 if (rargs == NULL) {
1026 if (nvlbuf == NULL) {
1027 return (NULL);
1044 if (nvlbuf == NULL)
1045 return (NULL);
1053 return (NULL);
1057 return (NULL);
1063 return (NULL);
1083 if (sub != NULL) {
1087 SH_SUBSCRIBER(shp, i) = NULL;
1098 if (SH_SUBSCRIBER(shp, sub_id) != NULL) {
1105 if (sub == NULL) {
1116 if (sub->sd_door_name == NULL) {
1155 if (c_list == NULL)
1156 return (NULL);
1160 while (sc_list != NULL) {
1167 return (NULL);
1184 while (c_list != NULL) {
1203 != NULL) {
1208 if (sc_list == NULL)
1212 if (sc_list->sl_name == NULL) {
1241 if ((c_list = cache_find_class(shp, class)) == NULL) {
1244 if (c_list == NULL) {
1248 if (c_list->cl_name == NULL) {
1255 if (c_list->cl_subclass_list == NULL) {
1261 if (c_list->cl_subclass_list->sl_name == NULL) {
1289 while (c_list != NULL) {
1291 while (sc_list != NULL) {
1311 if ((c_list = cache_find_class(shp, class)) == NULL) {
1316 while (sc_list != NULL) {
1331 while (clist != NULL) {
1333 while (sc_list != NULL) {
1344 SH_CLASS_HASH(shp)[i] = NULL;
1364 == NULL) {
1366 class_hash[i] = NULL;
1374 nvpair = NULL;
1375 if ((nvpair = nvlist_next_nvpair(nvl, nvpair)) == NULL) {
1387 if (clist == NULL) {
1392 if (clist->cl_name == NULL) {
1402 == NULL) {
1415 if (sc_list == NULL) {
1423 if (sc_list->sl_name == NULL) {
1448 == NULL) {
1485 nvpair_t *nvpair = NULL;
1490 if (alen < sizeof (struct reg_args) || cookie == NULL) {
1513 if (sub == NULL)
1519 SH_SUBSCRIBER(shp, sub_id) = NULL;
1532 if (SH_SUBSCRIBER(shp, sub_id) == NULL) {
1542 if ((nvpair = nvlist_next_nvpair(nvl, nvpair)) == NULL) {
1578 (void) door_return((void *)&ret, sizeof (ret), NULL, 0);
1579 (void) door_return(NULL, 0, NULL, 0);
1628 all_subclass_subscribers = NULL;
1635 subclass_subscribers = NULL;
1645 assert(sub != NULL);
1743 if (channel_path == NULL || strlen(channel_path) + 1 > MAXPATHLEN) {
1745 return (NULL);
1751 return (NULL);
1760 return (NULL);
1769 return (NULL);
1773 if (shp == NULL) {
1775 return (NULL);
1778 SH_CHANNEL_NAME(shp) = NULL;
1780 if (SH_CHANNEL_PATH(shp) == NULL) {
1783 return (NULL);
1789 (begin_path = strpbrk(begin_path, "/")) != NULL) {
1795 SE_OPEN_REGISTRATION, &sub_id, 0, NULL) != 0) {
1801 return (NULL);
1804 (void) mutex_init(SH_LOCK(shp), USYNC_THREAD, NULL);
1821 if (channel == NULL) {
1823 return (NULL);
1830 if ((fp = fopen(MNTTAB, "rF")) == NULL) {
1832 return (NULL);
1848 return (NULL);
1859 return (NULL);
1867 return (NULL);
1893 if (shp == NULL) {
1908 SE_CLOSE_REGISTRATION, &sub_id, 0, NULL);
1929 if (shp == NULL) {
1942 NULL) {
1956 if ((SH_DOOR_NAME(shp) = strdup(door_name)) == NULL) {
2008 SE_BIND_REGISTRATION, &pub_id, 0, NULL) != 0) {
2021 PUBLISHER, SE_UNBIND_REGISTRATION, &pub_id, 0, NULL);
2069 if (xsa->xs_thrattr == NULL) {
2077 err = pthread_create(NULL, thrattr, startf, startfarg);
2078 (void) pthread_sigmask(SIG_SETMASK, &oset, NULL);
2091 (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
2092 (void) pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
2110 if (shp == NULL || event_handler == NULL) {
2123 sizeof (subscriber_priv_t))) == NULL) {
2137 if ((sub_info->sp_door_name = strdup(door_name)) == NULL) {
2143 (void) cond_init(&sub_info->sp_cv, USYNC_THREAD, NULL);
2144 (void) mutex_init(&sub_info->sp_qlock, USYNC_THREAD, NULL);
2149 SE_BIND_REGISTRATION, &sub_id, 0, NULL) != 0) {
2160 if ((SH_DOOR_NAME(shp) = strdup(door_name)) == NULL) {
2183 if (subattr == NULL) {
2209 sub_id, 0, NULL) != 0) {
2212 SE_UNBIND_REGISTRATION, &sub_id, 0, NULL);
2221 if (xsa == NULL || xsa->xs_thrcreate == NULL) {
2222 created = thr_create(NULL, NULL,
2233 * pass a NULL door_info_t pointer to the function - so
2241 created = xsa->xs_thrcreate(NULL,
2265 SE_UNBIND_REGISTRATION, &sub_id, 0, NULL);
2270 sub_id, 0, NULL);
2288 return (sysevent_bind_subscriber_cmn(shp, event_handler, NULL));
2314 char *nvlbuf = NULL;
2319 if (event_class == NULL || event_subclass_list == NULL ||
2320 event_subclass_list[0] == NULL || SH_BOUND(shp) != 1 ||
2407 0, NULL) != 0) {
2434 if (sub == NULL) {
2457 SH_SUBSCRIBER(shp, i) = NULL;
2480 if (shp == NULL)
2491 SE_UNBIND_REGISTRATION, &SH_ID(shp), 0, NULL);
2496 SH_ID(shp), 0, NULL);
2511 if (sub_info->sp_handler_tid != NULL)
2512 (void) thr_join(sub_info->sp_handler_tid, NULL, NULL);
2528 if (shp == NULL)
2543 SE_UNBIND_REGISTRATION, &SH_ID(shp), 0, NULL);
2568 return (NULL);
2571 if (event_handler == NULL) {
2573 return (NULL);
2576 if ((shp = sysevent_open_channel(SYSEVENTD_CHAN)) == NULL) {
2577 return (NULL);
2595 return (NULL);
2608 return (NULL);
2612 return (NULL);
2626 return (sysevent_bind_handle_cmn(event_handler, NULL));