Lines Matching defs:linkp
2109 check_args(link_desc_t *linkp)
2111 if (linkp->fcn == NULL)
2114 if (!link_flag(linkp->flags)) {
2122 if (linkp->minor_path) {
2123 if (linkp->minor_path[0] != '/' ||
2124 minor_colon(linkp->minor_path) == NULL) {
2137 walk_db(struct di_devlink_handle *hdp, link_desc_t *linkp)
2141 if (linkp->minor_path == NULL) {
2142 return (walk_all_links(hdp, linkp));
2144 return (walk_matching_links(hdp, linkp));
2177 walk_dev(struct di_devlink_handle *hdp, link_desc_t *linkp)
2179 assert(hdp && linkp);
2193 if (linkp->minor_path)
2194 walk_cache_minor(hdp, linkp->minor_path, linkp);
2196 walk_all_cache(hdp, linkp);
2198 return (linkp->retval);
2237 walk_all_links(struct di_devlink_handle *hdp, link_desc_t *linkp)
2262 if (visit_link(hdp, linkp, &vlink) != DI_WALK_CONTINUE) {
2267 return (linkp->retval);
2271 walk_matching_links(struct di_devlink_handle *hdp, link_desc_t *linkp)
2277 assert(linkp->minor_path != NULL);
2279 dmp = lookup_minor(hdp, linkp->minor_path, NULL, TYPE_DB);
2295 if (visit_link(hdp, linkp, &vlink) != DI_WALK_CONTINUE)
2306 return (linkp->retval);
2312 link_desc_t *linkp,
2334 if (linkp->regp) {
2335 if (regexec(linkp->regp, vlp->rel_path, 0, NULL, 0) != 0)
2365 if (linkp->minor_path) {
2390 if (strcmp(linkp->minor_path, minor_path) != 0)
2397 if (!TYPE_NONE(linkp->flags) && LINK_TYPE(linkp->flags) != vlp->type) {
2407 return (linkp->fcn(vlp, linkp->arg));
3552 walk_cache_links(di_devlink_handle_t hdp, cache_link_t *clp, link_desc_t *linkp)
3577 if (visit_link(hdp, linkp, &vlink)
3595 walk_all_cache(di_devlink_handle_t hdp, link_desc_t *linkp)
3612 if (visit_link(hdp, linkp, &vlink) !=
3623 walk_cache_minor(di_devlink_handle_t hdp, const char *mpath, link_desc_t *linkp)
3630 (void) walk_cache_links(hdp, cmnp->link, linkp);
3637 walk_cache_node(di_devlink_handle_t hdp, const char *path, link_desc_t *linkp)
3650 if (walk_cache_links(hdp, cmnp->link, linkp)