Lines Matching defs:void

174 			(void) di_devlink_close(&hdp, 0);
188 (void) read_nodes(hdp, NULL, DB_HDR(hdp)->root_idx);
189 (void) read_links(hdp, NULL, DB_HDR(hdp)->dngl_idx);
191 (void) close_db(hdp);
196 static void
207 (void) dprintf(DBG_INFO, "get_db_path: alternate db dir: %s\n",
215 (void) snprintf(buf, blen, "%s/%s", dir, fname);
227 void *cp;
233 (void) dprintf(DBG_INFO, "open_db: skipping database\n");
278 (void) close(fd);
284 (void) close(fd);
298 (void) dprintf(DBG_ERR, "open_db: invalid DB(%s)\n", path);
299 (void) close_db(hdp);
302 (void) dprintf(DBG_STEP, "open_db: DB(%s): opened\n", path);
354 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir));
357 (void) strlcat(dev_dir, DEV, sizeof (dev_dir));
358 (void) strlcat(db_dir, ETCDEV, sizeof (db_dir));
368 (void) snprintf(can_path, sizeof (can_path), "%s/%s", ETCDEV, DB_FILE);
372 (void) mutex_lock(&temp_file_mutex);
373 (void) snprintf(di_test_db, sizeof (di_test_db), "%s.%d",
379 (void) close(fd);
380 (void) unlink(di_test_db);
382 (void) mutex_unlock(&temp_file_mutex);
392 (void) snprintf(install_path, sizeof (install_path),
405 (void) snprintf(db_dir, sizeof (db_dir), "/tmp%s", ETCDEV);
456 (void) unlink(path);
502 (void) dprintf(DBG_INFO, "N[%u] = %u\n", i, DB_NUM(hdp, i));
552 (void) dprintf(DBG_ERR, "%s: invalid parent or index(%u)\n",
579 (void) dprintf(DBG_STEP, "%s: node[%u]: %s\n", fcn, nidx,
597 (void) dprintf(DBG_ERR, "%s: minor[%u]: orphan minor\n", fcn,
614 (void) dprintf(DBG_STEP, "%s: minor[%u]: %s\n", fcn, nidx,
639 (void) dprintf(DBG_ERR, "read_links: invalid minor or"
656 (void) dprintf(DBG_STEP, "read_links: link[%u]: %s%s\n",
704 (void) dprintf(DBG_INFO, "di_devlink_close: update_count = %u\n",
715 (void) dprintf(DBG_INFO,
717 (void) synchronize_db(hdp);
731 (void) dprintf(DBG_INFO, "di_devlink_close: skipping write\n");
732 (void) unlink(file);
750 (void) write_nodes(hdp, NULL, CACHE_ROOT(hdp), next);
751 (void) write_links(hdp, NULL, CACHE(hdp)->dngl, next);
757 (void) dprintf(DBG_ERR, "di_devlink_close: %s error: %s\n",
759 (void) unlink(tmp);
760 (void) unlink(file);
767 (void) dprintf(DBG_INFO, "di_devlink_close: wrote DB(%s)\n", file);
813 (void) dprintf(DBG_ERR, "%s: invalid parent for: %s\n",
844 (void) dprintf(DBG_STEP, "%s: node[%u]: %s\n", fcn, idx,
870 (void) dprintf(DBG_ERR, "%s: no node for minor: %s\n", fcn,
900 (void) dprintf(DBG_STEP, "%s: minor[%u]: %s\n", fcn, idx,
926 (void) dprintf(DBG_ERR, "%s: invalid minor for link\n", fcn);
936 (void) dprintf(DBG_ERR, "%s: invalid minor for link"
969 (void) dprintf(DBG_STEP, "%s: link[%u]: %s%s\n", fcn, idx,
986 (void) dprintf(DBG_ERR, "write_string: NULL argument\n");
992 (void) dprintf(DBG_ERR, "write_string: invalid index[%u],"
1001 (void) strcpy(dstr, str);
1032 (void) munmap(DB_SEG(hdp, i), sz);
1040 (void) munmap((caddr_t)DB_HDR(hdp), HDR_LEN);
1043 (void) close(DB(hdp)->db_fd);
1051 static void
1077 static void
1087 (void) close_db(hdp);
1103 static void
1135 static void
1224 (void) snprintf(buf, sizeof (buf), "%s", clp->path);
1227 (void) strlcat(buf, clp->content, sizeof (buf));
1242 (void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path);
1284 static void
1310 static void
1324 static void
1344 static void
1374 static void *
1381 void *vp;
1391 (void) snprintf(pdup, sizeof (pdup), "%s", minor_path);
1394 (void) dprintf(DBG_ERR, "%s: invalid minor path(%s)\n", fcn,
1406 (void) dprintf(DBG_ERR, "%s: node(%s) not found\n", fcn, pdup);
1441 static void *
1461 static void *
1468 (void) dprintf(DBG_INFO, "get_last_node: SKIPPING \"last\" "
1492 static void *
1503 (void) dprintf(DBG_INFO, "get_last_minor: SKIPPING \"last\" "
1529 static void
1534 (void) dprintf(DBG_INFO, "set_last_minor: SKIPPING \"last\" "
1552 void *arg,
1553 int (*node_callback)(const char *path, void *arg))
1562 (void) strcpy(buf, "/");
1580 (void) strlcat(buf, "/", sizeof (buf));
1585 (void) strlcat(buf, cur, sizeof (buf));
1589 (void) strlcat(buf, cur, sizeof (buf));
1600 visit_node(const char *path, void *arg)
1641 static void
1648 (void) dprintf(DBG_STEP, "%s: removing minor: %s\n", fcn, cmnp->name);
1659 (void) dprintf(DBG_ERR, "%s: dangling minor: %s\n",
1665 (void) dprintf(DBG_ERR, "%s: orphan minor(%s)\n", fcn,
1685 static void
1697 (void) dprintf(DBG_INFO, "%s: removing unused node: %s\n", fcn,
1709 (void) dprintf(DBG_ERR, "%s: dangling node: %s\n", fcn,
1717 (void) dprintf(DBG_ERR, "%s: orphan node (%s)\n", fcn,
1764 static void
1770 (void) dprintf(DBG_STEP, "%s: removing link: %s\n", fcn, clp->path);
1783 (void) dprintf(DBG_ERR, "%s: link(%s) not on list\n",
1796 static void
1844 (void) rm_link(hdp, link);
1854 (void) dprintf(DBG_ERR, "%s: invalid content(%s)"
1943 (void) snprintf(pdup, sizeof (pdup), "%s", clp->path);
1945 (void) dprintf(DBG_STEP, "%s: removing invalid link:"
1947 (void) di_devlink_rm_link(hdp, pdup);
1951 (void) dprintf(DBG_STEP, "%s: update completed\n", fcn);
1973 (void) dprintf(DBG_INFO, "devlink_init_impl: success\n");
2019 (void) devlink_create(root_dir, NULL, DCA_DEVLINK_SYNC);
2045 void *arg,
2046 int (*devlink_callback)(di_devlink_t, void *))
2199 cache_dev_link(struct di_devlink_handle *hdp, void *data, const char *link)
2320 (void) dprintf(DBG_ERR, "visit_link: invalid arguments\n");
2337 (void) snprintf(abs_path, sizeof (abs_path), "%s/%s",
2471 (void) di_devlink_free(duplink);
2520 (void) do_recurse(hdp->dev_dir, hdp, rp, &ret);
2549 (void) dprintf(DBG_STEP, "do_recurse: skipping %s\n",
2555 (void) dprintf(DBG_STEP, "do_recurse: dir = %s\n", dir);
2560 (void) snprintf(cur, sizeof (cur), "%s/", dir);
2579 (void) dprintf(DBG_STEP,
2591 (void) dprintf(DBG_STEP,
2595 (void) dprintf(DBG_ERR, "do_recurse: cur(%s): lstat"
2795 static void
2859 static void *
2876 (void) dprintf(DBG_ERR, "map_seg: seg(%d): invalid idx(%u)\n",
2887 (void) dprintf(DBG_ERR, "map_seg: illegal access: "
2906 (void) dprintf(DBG_ERR, "map_seg: seg[%d]: mmap failed: %s\n",
2908 (void) dprintf(DBG_ERR, "map_seg: args: len=%lu, prot=%d,"
2917 (void) dprintf(DBG_STEP, "map_seg: seg[%d]: len=%lu, prot=%d, fd=%d, "
2919 off, (void *)addr);
2972 (void) dprintf(DBG_INFO, "N[%u]=%u\n", i, count[i]);
2974 (void) dprintf(DBG_INFO, "DB size=%lu\n", (ulong_t)sz);
2980 static void
3001 static void
3018 static void
3030 static void
3034 (void) dprintf(DBG_ERR, "count_string: NULL argument\n");
3092 (void) mutex_lock(&update_mutex);
3113 (void) devlink_create(root_dir, NULL,
3120 (void) mutex_unlock(&update_mutex);
3125 (void) mutex_unlock(&update_mutex);
3149 (void) close(fd);
3152 (void) mutex_unlock(&update_mutex);
3159 static void
3181 (void) close(hdp->lock_fd);
3185 (void) mutex_unlock(&update_mutex);
3351 (void) snprintf(dcp->dca_name, sizeof (dcp->dca_name),
3359 (void) snprintf(dcp->dca_name, sizeof (dcp->dca_name), "%s", name);
3422 (void) close(rofd);
3423 (void) unlink(DEVNAME_CHECK_FILE);
3431 (void) snprintf(synch_door, sizeof (synch_door),
3465 (void) sigfillset(&nset);
3466 (void) sigemptyset(&oset);
3467 (void) sigprocmask(SIG_SETMASK, &nset, &oset);
3472 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
3474 (void) close(fd);
3489 (void) munmap(arg.rbuf, arg.rsize);
3520 (void) sleep(DAEMON_STARTUP_TIME);
3525 static void
3578 (void) dup2(fd, fileno(stdout));
3579 (void) dup2(fd, fileno(stderr));
3580 (void) close(fd);
3582 (void) execv(path, argv);
3658 static void
3686 static void
3694 (void) walk_cache_links(hdp, cmnp->link, linkp);
3700 static void
3744 void *arg,
3745 int (*devlink_callback)(di_devlink_t, void *))
3786 static void
3830 (void) fprintf(stderr, "[ERROR]: ");
3833 (void) vfprintf(stderr, fmt, ap);
3834 (void) fflush(stderr);
3839 void