Lines Matching defs:content

637 	char *path, *content;
652 content = get_string(hdp, dlp->content);
654 clp = link_insert(hdp, pcmp, path, content, dlp->attr);
953 dlp->content = write_string(hdp, clp->content, next);
954 if (dlp->path == DB_NIL || dlp->content == DB_NIL) {
955 dlp->path = dlp->content = DB_NIL;
1203 * For primary link, content should point to a /devices node.
1205 if (!is_minor_node(clp->content, &minor_path)) {
1222 if (strncmp(clp->content, DEV"/", strlen(DEV"/")) == 0) {
1223 cp = &clp->content[strlen(DEV"/")];
1224 } else if (clp->content[0] != '/') {
1231 (void) strlcat(buf, clp->content, sizeof (buf));
1359 free(clp->content);
1819 const char *content,
1822 return (add_link(hdp, link, content, flags) != NULL ? 0 : -1);
1829 const char *content,
1838 link[0] == '/' || content == NULL || !link_flag(flags) ||
1847 if (link_cmp(clp, content, LINK_TYPE(flags)) != 0) {
1857 if (!is_minor_node(content, &minor_path)) {
1858 (void) dprintf(DBG_ERR, "%s: invalid content(%s)"
1859 " for primary link\n", fcn, content);
1878 return (link_insert(hdp, cmnp, link, content, attr));
1885 link_cmp(cache_link_t *clp, const char *content, int type)
1887 if (strcmp(clp->content, content) != 0)
2207 char content[PATH_MAX];
2211 if (s_readlink(link, content, sizeof (content)) < 0) {
2215 if (is_minor_node(content, NULL)) {
2228 if ((clp = add_link(hdp, link, content, flags)) != NULL) {
2259 vlink.content = get_string(hdp, dlp->content);
2292 vlink.content = get_string(hdp, dlp->content);
2320 * It is legal for the link's content and type to be unknown.
2346 if (vlp->content == NULL) {
2350 vlp->content = cont;
2355 if (is_minor_node(vlp->content, &minor_path)) {
2384 if (!is_minor_node(vlp->content, &minor_path))
2414 devlink->abs_path == NULL || devlink->content == NULL ||
2441 return (devlink->content);
2471 duplink->content = strdup(devlink->content);
2493 free(devlink->content);
2759 const char *content,
2764 if (path == NULL || content == NULL || !check_attr(attr)) {
2776 clp->content = strdup(content);
2777 if (clp->path == NULL || clp->content == NULL) {
3030 count_string(clp->content, count);
3574 vlink.content = clp->content;
3610 vlink.content = clp->content;