/illumos-gate/usr/src/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 219 * print_rsrc_desc(resource, sharedesc) 221 * Print the resource description string after converting from UTF8 to 223 * description on the resource, use sharedesc. sharedesc will already 228 print_rsrc_desc(sa_resource_t resource, char *sharedesc) argument 233 if (resource == NULL) 236 description = sa_get_resource_description(resource); 275 * Set the resource description value after converting the description 466 /* If really a resource, get parent share */ 506 /* Must be a resource */ 513 "reenable resource 1943 sa_resource_t resource; local 1987 sa_resource_t resource; local 2011 sa_resource_t resource; local 2038 sa_resource_t resource = NULL; local 2537 sa_resource_t resource = NULL; local 3009 sa_resource_t resource = NULL; local 3269 sa_resource_t resource = NULL; local 3683 sa_resource_t resource = NULL; local 4206 sa_resource_t resource = NULL; local 5323 char *resource; local 5435 char *resource = NULL; local 5726 sa_resource_t resource = NULL; local [all...] |
/illumos-gate/usr/src/cmd/dladm/ |
H A D | dladm.c | 1673 char *resource = NULL; local 1729 resource = argv[optind]; 1731 (((status = dladm_name2info(handle, resource, NULL, &flags, 1734 die("invalid link: '%s'", resource); 1747 if (resource == NULL && stime == NULL && etime == NULL) { 1763 DLADM_LOGTYPE_LINK, file, resource, &state); 1764 } else if (resource == NULL && stime == NULL && etime == NULL && 1769 } else if (resource != NULL) { 1770 /* Print log entries for named resource */ 1772 DLADM_LOGTYPE_LINK, file, resource, stim [all...] |
/illumos-gate/usr/src/cmd/dlstat/ |
H A D | dlstat.c | 699 char *resource = NULL; local 754 resource = argv[optind]; 756 (((status = dladm_name2info(handle, resource, NULL, &flags, 759 die("invalid link: '%s'", resource); 772 if (resource == NULL && stime == NULL && etime == NULL) { 788 DLADM_LOGTYPE_LINK, file, resource, &state); 789 } else if (resource == NULL && stime == NULL && etime == NULL && 794 } else if (resource != NULL) { 795 /* Print log entries for named resource */ 797 DLADM_LOGTYPE_LINK, file, resource, stim [all...] |
/illumos-gate/usr/src/cmd/flowstat/ |
H A D | flowstat.c | 903 char *resource = NULL; local 959 resource = argv[optind]; 961 dladm_flow_info(handle, resource, &attr) != 963 die("invalid flow: '%s'", resource); 969 if (resource == NULL && stime == NULL && etime == NULL) { 993 DLADM_LOGTYPE_FLOW, file, resource, &state); 994 } else if (resource == NULL && stime == NULL && etime == NULL && 999 } else if (resource != NULL) { 1000 /* Print log entries for named resource */ 1002 DLADM_LOGTYPE_FLOW, file, resource, stim [all...] |
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 75 * \/ | resource | /-------\ /-------\ 114 * resource. The -s flag is also similar but just gives the top line summary. 212 name_list_t *resource; member in struct:status_record 230 char *resource; member in struct:resource_list 505 name_list_t *fru, name_list_t *asru, name_list_t *resource, 524 status_rec_p->resource = resource; 626 if (strcmp(fp->name, np->resource) == 0) { 656 np->resource = fp->name; 686 name_list_t *fru, name_list_t *asru, name_list_t *resource, 504 new_record_init(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected) argument 685 catalog_new_record(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected, boolean_t dummy_fru) argument 815 name_list_t *class = NULL, *resource = NULL; local 1357 find_fru(status_record_t *srp, char *resource) argument [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_protocol.c | 115 nvlist_t *asru, nvlist_t *fru, nvlist_t *resource, const char *location) 131 if (resource != NULL) 132 err |= nvlist_add_nvlist(nvl, FM_FAULT_RESOURCE, resource); 224 fmd_panic("failed to xalloc resource nvlist"); 114 fmd_protocol_fault(const char *class, uint8_t certainty, nvlist_t *asru, nvlist_t *fru, nvlist_t *resource, const char *location) argument
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.c | 230 nvlist_t *dfmri, *real_fmri, *resource; local 311 * For hc scheme, if we can find the resource from the tolopogy, use 318 TOPO_PROP_RESOURCE, NULL, &resource, &err) == -1) { 321 } else if (nvlist_lookup_nvlist(resource, 327 nvlist_free(resource); 776 * The first order of business is to find the resource in the 785 out(O_ALTFP, "Cannot find %s property for %s resource " 793 * Get resource FMRI from libtopo 807 out(O_ALTFP, "Cannot rewrite resource for %s.", path); 813 out(O_ALTFP, "Cannot rewrite resource fo [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/ |
H A D | zfs_retire.c | 357 nvlist_t *resource, *fault, *fru; local 375 * If this is a resource notifying us of device removal, then simply 378 if (strcmp(class, "resource.fs.zfs.removed") == 0) { 398 if (strcmp(class, "resource.fs.zfs.statechange") == 0 || 400 "resource.sysevent.EC_zfs.ESC_ZFS_vdev_remove") == 0) { 483 * This is a ZFS fault. Lookup the resource, and 487 &resource) != 0 || 488 nvlist_lookup_string(resource, FM_FMRI_SCHEME, 495 if (nvlist_lookup_uint64(resource, FM_FMRI_ZFS_POOL, 499 if (nvlist_lookup_uint64(resource, FM_FMRI_ZFS_VDE [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | lgrp.c | 684 * Initialize resource walker for a given lgroup and resource. The lgroup 688 lgrp_rsrc_walk_init(mdb_walk_state_t *wsp, int resource) argument 697 return (lgrp_set_walk_init(wsp, lgrp.lgrp_set[resource])); 701 * Initialize CPU resource walker 710 * Initialize memory resource walker
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 70 " For each process, report all resource limits:\n" 74 " For each process, set specified resource limits:\n" 392 int resource; local 396 (void) printf(" resource\t\t current\t maximum\n"); 398 for (resource = 0; resource < RLIM_NLIMITS; resource++) { 399 if (pr_getrlimit64(Pr, resource, &rlim) != 0) 402 switch (resource) { 461 (void) sprintf(buf, " rlimit #%d\t", resource); [all...] |
/illumos-gate/usr/src/cmd/policykit/ |
H A D | polkit-is-privileged.c | 43 "usage : %s -u <uid> -p <privilege> [-r <resource>]\n" 50 " -r, --resource Resource\n" 57 "privilege for a given resource. The resource may be omitted.\n" 67 char *resource = NULL; local 72 {"resource", required_argument, NULL, 'r'}, 107 resource = g_strdup (optarg); 142 if (resource != NULL) 143 printf ("resource = '%s'\n", resource); [all...] |
/illumos-gate/usr/src/cmd/pools/poolcfg/ |
H A D | poolcfg.y | 78 " associate pool name [resource-list]\n" \ 81 " transfer to resource name [component-list]\n" \ 82 " transfer one or more discreet components to a resource\n" \ 83 " transfer [quantity] from resource src to tgt\n" \ 84 " transfer a resource quantity from src to tgt\n" \ 85 " transfer [quantity] to resource tgt from src\n" \ 86 " transfer a resource quantity to tgt from src\n" \ 97 "resource-list:\n" \ 98 " ( resource name [; resource nam 599 resource: PCE_PSET {$$ = PCE_PSET;}; label [all...] |
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
H A D | DecisionHistory.java | 94 * resource until the next utilization sample is taken, 96 * If another decision is made regarding this resource, 105 private void recordImprovementWithUtilization(Resource resource, argument 109 resource); 117 Poold.OPT_LOG.log(Severity.DEBUG, resource + 125 * A Decision boils down to a tuple describing the resource 126 * configuration involved before and after a particular resource 133 * Utilization of the resource before the move was made. 188 * corresponding to the affected resource before the move 241 * resource befor [all...] |
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/ |
H A D | Resource.java | 35 * The <code>Resource</code> class represents a resource. 40 * The type of the resource. 44 * The system id of the resource. 48 * The key of the resource. 55 * @param resource The pointer to the native resource which 59 Resource(Configuration conf, long resource) throws PoolsException argument 62 Value val = getProperty("type", resource); 65 val = getProperty(type + ".name", resource); 72 * Returns a pointer to the native resouce represented by this resource [all...] |
/illumos-gate/usr/src/cmd/pools/poolstat/ |
H A D | poolstat.c | 135 * but, poolstat can be extended to handle new upcoming resource types. 172 " \'format\' for all resource types is one or more of:\n" 223 case 'r': { /* resource type */ 286 /* crate a default resource list */ 674 * Print a statistics header line for a given resource type. 860 update_resource_stats(pool_resource_t *resource, const char *rtype) argument 878 if ((elem = pool_resource_to_elem(conf, resource)) == NULL) 957 /* print the common resource header */ 985 /* print statistic for all resource types defined in rtypes */
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | ip_rcm.c | 143 struct ip_cache *ip_next; /* next cached resource */ 144 struct ip_cache *ip_prev; /* prev cached resource */ 145 char *ip_resource; /* resource name */ 410 /* Lock the cache and lookup the resource */ 414 ip_log_err(node, errorp, "Unrecognized resource"); 596 * ip_get_info() - Gather usage information for this resource. 620 _("IP: get_info(%s) unrecognized resource\n"), rsrc); 692 * ip_remove() - remove a resource from cache 714 _("IP: remove(%s) unrecognized resource\n"), rsrc); 720 /* remove the cached entry for the resource */ 1839 char *resource; local [all...] |
H A D | network_rcm.c | 66 char *resource; member in struct:net_cache 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 577 cache_lookup(const char *resource) argument 645 char resource[MAXPATHLEN]; local [all...] |
H A D | ttymux_rcm.c | 58 #define TTYMUX_INVALID_ERR gettext("Invalid Operation on this resource") 153 * Get a cache node for a resource. Call with cache lock held. 156 cache_lookup(const char *resource) argument 161 if (rsrc->id && strcmp(resource, rsrc->id) == 0) { 223 cache_create(const char *resource, dev_t dev) argument 228 if ((rsrc->id = strdup(resource)) != NULL) { 238 _msg(0, ("TTYMUX: malloc failure for resource %s.\n", 239 resource)); 250 cache_get(const char *resource) argument 252 rsrc_t *rsrc = cache_lookup(resource); 703 char resource[PATH_MAX]; local [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | t-memstat.c | 38 fprintf(stderr, "-r name use name as resource to query\n"); 49 char *resource; local 53 resource = NULL; 67 resource = strdup(optarg); 86 r2 = sm_memstat_get(resource, &v); 90 resource != NULL ? resource : "default-value", 109 resource != NULL ? resource : "default-value", v);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_protocol.c | 83 topo_node_resource(tnode_t *node, nvlist_t **resource, int *err) argument 87 TOPO_PROP_RESOURCE, resource, err));
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/chip/ |
H A D | chip_subr.c | 223 * Construct an hc scheme resource FMRI for a node named name with 368 nvlist_t *resource; local 397 * node. If there is a serial id in the resource fmri, then use that. 402 if (topo_node_resource(dimmnode, &resource, &err) != -1) { 403 if (nvlist_lookup_string(resource, FM_FMRI_HC_SERIAL_ID, 406 nvlist_free(resource); 409 nvlist_free(resource); 413 nvlist_free(resource);
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | usage.c | 1036 * based on a "resource" name. 1040 char *logfile, char *resource, char *stime, char *etime, void *arg) 1075 /* Get to the resource we are interested in */ 1076 if (strcmp(resource, nns->net_stat_name) != 0) { 1182 * Walk the time sorted list if a resource is not specified. 1283 * for this resource and proceed. We will end up writing 1287 * resource for which we hit a reference entry. 1365 char *logfile, char *resource, void *arg) 1390 /* get to the resource we are interested in */ 1391 if (resource ! 1039 dladm_walk_usage_res(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, char *resource, char *stime, char *etime, void *arg) argument 1364 dladm_usage_dates(int (*fn)(dladm_usage_t *, void *), int logtype, char *logfile, char *resource, void *arg) argument [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_dfstab.c | 46 char *resource; member in struct:dfstab_entry 142 if (headp->resource != NULL) { 143 free(headp->resource); 542 * Accessor function for resource element of dfstab entry. 551 return (entryptr->resource);
|
H A D | fs_mounts.c | 52 static struct mnttab *create_mnttab_filter(char *resource, char *mountp, 72 free(headp->resource); 159 fs_get_filtered_mount_list(char *resource, char *mountp, char *fstype, argument 175 search_entry = create_mnttab_filter(resource, mountp, fstype, 546 newp->resource = strdup(mnttab_entry.mnt_special); 547 if (newp->resource == NULL) { 606 newp->resource = strdup(mnttab_entry.mnt_special); 607 if (newp->resource == NULL) { 656 create_mnttab_filter(char *resource, char *mountp, char *fstype, char *mntopts, argument 671 if (resource ! [all...] |
H A D | libfsmgt.h | 57 char *resource; member in struct:mount_default_list 71 char *resource; member in struct:mount_list 87 char *resource; member in struct:share_list 501 * 1.) resource 507 * char *resource - The name of the resource to be mounted 520 fs_mntlist_t *fs_get_filtered_mount_list(char *resource, 903 * Description: Retrieves the resource information from the dfstab entry 907 * fs_dfstab_entry_t entry - the dfstab entry to retrieve the resource 912 * A NULL value indecates that no resource informatio [all...] |