Lines Matching defs:vlp
2313 struct di_devlink *vlp)
2323 if (vlp->rel_path == NULL && vlp->abs_path == NULL) {
2328 if (vlp->rel_path == NULL) {
2329 vlp->rel_path = (char *)rel_path(hdp, vlp->abs_path);
2330 if (vlp->rel_path == NULL || vlp->rel_path[0] == '\0')
2335 if (regexec(linkp->regp, vlp->rel_path, 0, NULL, 0) != 0)
2339 if (vlp->abs_path == NULL) {
2340 assert(vlp->rel_path[0] != '/');
2342 hdp->dev_dir, vlp->rel_path);
2343 vlp->abs_path = abs_path;
2346 if (vlp->content == NULL) {
2347 if (s_readlink(vlp->abs_path, cont, sizeof (cont)) < 0) {
2350 vlp->content = cont;
2354 if (vlp->type == 0) {
2355 if (is_minor_node(vlp->content, &minor_path)) {
2356 vlp->type = DI_PRIMARY_LINK;
2358 vlp->type = DI_SECONDARY_LINK;
2371 if (vlp->type == DI_SECONDARY_LINK) {
2377 if (s_realpath(vlp->abs_path, tmp) == NULL)
2384 if (!is_minor_node(vlp->content, &minor_path))
2397 if (!TYPE_NONE(linkp->flags) && LINK_TYPE(linkp->flags) != vlp->type) {
2401 if (lstat(vlp->abs_path, &sbuf) < 0) {
2403 vlp->abs_path, strerror(errno));
2407 return (linkp->fcn(vlp, linkp->arg));