Lines Matching defs:rsrc

304 vnic_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
309 rcm_log_message(RCM_TRACE1, "VNIC: offline(%s)\n", rsrc);
313 node = cache_lookup(hd, rsrc, CACHE_REFRESH);
339 "VNIC: offline query succeeded(%s)\n", rsrc);
352 rcm_log_message(RCM_TRACE1, "VNIC: Offline succeeded(%s)\n", rsrc);
362 vnic_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
367 rcm_log_message(RCM_TRACE1, "VNIC: online(%s)\n", rsrc);
370 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH);
394 rcm_log_message(RCM_TRACE1, "VNIC: online succeeded(%s)\n", rsrc);
468 vnic_get_info(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
473 rcm_log_message(RCM_TRACE1, "VNIC: get_info(%s)\n", rsrc);
476 node = cache_lookup(hd, rsrc, CACHE_REFRESH);
479 _("VNIC: get_info(%s) unrecognized resource\n"), rsrc);
490 _("VNIC: get_info(%s) malloc failure\n"), rsrc);
500 rsrc, *usagep);
509 vnic_suspend(rcm_handle_t *hd, char *rsrc, id_t id, timespec_t *interval,
512 rcm_log_message(RCM_TRACE1, "VNIC: suspend(%s)\n", rsrc);
521 vnic_resume(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
524 rcm_log_message(RCM_TRACE1, "VNIC: resume(%s)\n", rsrc);
538 char rsrc[RCM_LINK_RESOURCE_MAX];
553 (void) snprintf(rsrc, RCM_LINK_RESOURCE_MAX, "%s/%u",
556 ret = rcm_notify_remove(hd, rsrc, flags, info);
559 _("VNIC: notify remove failed (%s)\n"), rsrc);
573 vnic_remove(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
579 rcm_log_message(RCM_TRACE1, "VNIC: remove(%s)\n", rsrc);
582 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH);
585 _("VNIC: remove(%s) unrecognized resource\n"), rsrc);
609 vnic_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags,
617 rcm_log_message(RCM_TRACE1, "VNIC: notify_event(%s)\n", rsrc);
619 if (strcmp(rsrc, RCM_RESOURCE_LINK_NEW) != 0) {
765 cache_lookup(rcm_handle_t *hd, char *rsrc, char options)
769 rcm_log_message(RCM_TRACE2, "VNIC: cache lookup(%s)\n", rsrc);
781 if (strcmp(rsrc, node->vc_resource) == 0) {
783 "VNIC: cache lookup succeeded(%s)\n", rsrc);
854 char *rsrc;
881 rsrc = malloc(RCM_LINK_RESOURCE_MAX);
882 if (rsrc == NULL) {
888 (void) snprintf(rsrc, RCM_LINK_RESOURCE_MAX, "%s/%u",
891 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH);
895 rsrc, vnic_attr.va_vnic_id);
896 free(rsrc);
900 rsrc, vnic_attr.va_vnic_id);
902 free(rsrc);
908 node->vc_resource = rsrc;
927 free(rsrc);
1085 char rsrc[RCM_LINK_RESOURCE_MAX];
1087 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u",
1090 rcm_log_message(RCM_ERROR, _("VNIC: %s(%s)\n"), errmsg, rsrc);
1095 rsrc, dladm_status2str(status, errstr));
1125 char rsrc[RCM_LINK_RESOURCE_MAX];
1134 (void) snprintf(rsrc, RCM_LINK_RESOURCE_MAX, "%s/%u",
1137 if (rcm_notify_online(hd, rsrc, flags, info) == RCM_SUCCESS)
1154 char rsrc[RCM_LINK_RESOURCE_MAX];
1161 (void) snprintf(rsrc, RCM_LINK_RESOURCE_MAX, "%s/%u",
1164 ret = rcm_request_offline(hd, rsrc, flags, info);
1183 vnic_notify_new_vnic(rcm_handle_t *hd, char *rsrc)
1191 rcm_log_message(RCM_TRACE2, "VNIC: vnic_notify_new_vnic (%s)\n", rsrc);
1194 if ((node = cache_lookup(hd, rsrc, CACHE_REFRESH)) == NULL) {
1241 char rsrc[RCM_LINK_RESOURCE_MAX];
1245 (void) snprintf(rsrc, RCM_LINK_RESOURCE_MAX, "%s/%u", RCM_LINK_PREFIX,
1248 rcm_log_message(RCM_TRACE2, "VNIC: vnic_consumer_notify(%s)\n", rsrc);
1253 if (vnic_notify_new_vnic(hd, rsrc) != 0) {
1255 if ((node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH)) != NULL) {
1261 "VNIC: vnic_notify_new_vnic failed(%s)\n", rsrc);
1314 char rsrc[RCM_LINK_RESOURCE_MAX];
1319 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u", RCM_LINK_PREFIX, linkid);
1321 rcm_log_message(RCM_TRACE2, "VNIC: vnic_configure(%s)\n", rsrc);
1325 if (((node = cache_lookup(hd, rsrc, CACHE_REFRESH)) != NULL) &&
1328 "VNIC: Skipping configured interface(%s)\n", rsrc);
1340 "VNIC: vnic_configure succeeded(%s)\n", rsrc);