Lines Matching defs:resource

66 	char			*resource;
103 static net_cache_t *cache_lookup(const char *resource);
237 (void) rcm_unregister_interest(hd, probe->resource, 0);
281 * resource.
287 _("NET: unrecognized resource %s\n"), rsrc);
307 * resource following the reattachment of the resource.
366 * Determine dependents of the resource being offlined, and offline
388 * Online the previously offlined resource, and online its dependents.
407 * Gather usage information for this resource.
410 * resource and extracts copies of any piece of information it needs.
441 _("NET: unrecognized resource %s\n"), rsrc);
452 node->resource, dladm_status2str(status, errmsg));
491 * Notify all dependents that the resource is being suspended.
495 * this resource, so it is only locked during that retrieval.
520 * this resource, so it is only locked during that retrieval.
574 * Get a cache node for a resource. Call with cache lock held.
577 cache_lookup(const char *resource)
582 if (probe->resource &&
583 (strcmp(resource, probe->resource) == 0)) {
600 free(node->resource);
645 char resource[MAXPATHLEN];
679 (void) snprintf(resource, sizeof (resource), "/devices%s", devfspath);
689 probe = cache_lookup(resource);
693 resource, linkid);
698 _("NET: %s is new resource (linkid %u)\n"),
699 resource, linkid);
706 probe->resource = strdup(resource);
709 if (!probe->resource) {
756 (void) rcm_unregister_interest(hd, probe->resource, 0);
758 probe->resource);
772 probe->resource);
773 rv = rcm_register_interest(hd, probe->resource, 0, NULL);
777 probe->resource);
781 probe->resource, probe->linkid);
811 * resource events. It intercepts all new resource
812 * events. If the new resource is a network resource,