Lines Matching refs:content

633 	char *path, *content;
648 content = get_string(hdp, dlp->content);
650 clp = link_insert(hdp, pcmp, path, content, dlp->attr);
949 dlp->content = write_string(hdp, clp->content, next);
950 if (dlp->path == DB_NIL || dlp->content == DB_NIL) {
951 dlp->path = dlp->content = DB_NIL;
1199 * For primary link, content should point to a /devices node.
1201 if (!is_minor_node(clp->content, &minor_path)) {
1218 if (strncmp(clp->content, DEV"/", strlen(DEV"/")) == 0) {
1219 cp = &clp->content[strlen(DEV"/")];
1220 } else if (clp->content[0] != '/') {
1227 (void) strlcat(buf, clp->content, sizeof (buf));
1355 free(clp->content);
1815 const char *content,
1818 return (add_link(hdp, link, content, flags) != NULL ? 0 : -1);
1825 const char *content,
1834 link[0] == '/' || content == NULL || !link_flag(flags) ||
1843 if (link_cmp(clp, content, LINK_TYPE(flags)) != 0) {
1853 if (!is_minor_node(content, &minor_path)) {
1854 (void) dprintf(DBG_ERR, "%s: invalid content(%s)"
1855 " for primary link\n", fcn, content);
1874 return (link_insert(hdp, cmnp, link, content, attr));
1881 link_cmp(cache_link_t *clp, const char *content, int type)
1883 if (strcmp(clp->content, content) != 0)
2203 char content[PATH_MAX];
2207 if (s_readlink(link, content, sizeof (content)) < 0) {
2211 if (is_minor_node(content, NULL)) {
2224 if ((clp = add_link(hdp, link, content, flags)) != NULL) {
2255 vlink.content = get_string(hdp, dlp->content);
2288 vlink.content = get_string(hdp, dlp->content);
2316 * It is legal for the link's content and type to be unknown.
2342 if (vlp->content == NULL) {
2346 vlp->content = cont;
2351 if (is_minor_node(vlp->content, &minor_path)) {
2380 if (!is_minor_node(vlp->content, &minor_path))
2410 devlink->abs_path == NULL || devlink->content == NULL ||
2437 return (devlink->content);
2467 duplink->content = strdup(devlink->content);
2489 free(devlink->content);
2755 const char *content,
2760 if (path == NULL || content == NULL || !check_attr(attr)) {
2772 clp->content = strdup(content);
2773 if (clp->path == NULL || clp->content == NULL) {
3026 count_string(clp->content, count);
3638 vlink.content = clp->content;
3674 vlink.content = clp->content;