/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/uts/common/fs/zfs/ |
H A D | zfs_fm.c | 813 nvlist_t *resource; local 819 if ((resource = fm_nvlist_create(NULL)) == NULL) 824 VERIFY(nvlist_add_uint8(resource, FM_VERSION, FM_RSRC_VERSION) == 0); 825 VERIFY(nvlist_add_string(resource, FM_CLASS, class) == 0); 826 VERIFY(nvlist_add_uint64(resource, 829 VERIFY(nvlist_add_uint64(resource, 832 fm_ereport_post(resource, EVCH_SLEEP); 834 fm_nvlist_destroy(resource, FM_NVA_FREE); 839 * The 'resource.fs.zfs.removed' event is an internal signal that the given vdev 851 * The 'resource [all...] |
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_dmae.c | 77 * Return the hwlock for some protected resource. 80 * @param resource the resource 82 * @return u8_t the hwlock for the given resource. 84 static u8_t lm_dmae_locking_policy_hwlock_id_for_resource(struct _lm_device_t* pdev, IN const u32_t resource) argument 86 switch (resource) 95 DbgBreakMsg("HW lock for resource does not exist.\n"); 104 IN const u32_t resource, 117 policy->hwlock = lm_dmae_locking_policy_hwlock_id_for_resource(pdev, resource); 103 lm_dmae_locking_policy_create( struct _lm_device_t* pdev, IN const u32_t resource, IN const lm_dmae_locking_policy_type_t type, OUT lm_dmae_locking_policy_t* policy) argument
|
H A D | lm_hw_access.c | 1475 * Acquiring the HW lock for a specific resource. 1476 * The assumption is that only 1 bit is set in the resource parameter 1481 * resource: the HW LOCK Register name 1489 const u32_t resource, 1494 u32_t const resource_bit = (1 << resource); 1498 // Validating the resource in within range 1499 if (resource > HW_LOCK_MAX_RESOURCE_VALUE) 1501 DbgMessage(pdev, FATAL, "lm_hw_lock: LM_STATUS_INVALID_PARAMETER resource=0x%x\n", resource); 1509 // Validating that the resource i 1488 lm_hw_lock( lm_device_t* pdev, const u32_t resource, const u8_t b_block) argument 1547 lm_hw_unlock_ex(lm_device_t* pdev, const u32_t resource, const u8_t b_verify_locked ) argument 1596 lm_hw_unlock(lm_device_t* pdev, const u32_t resource) argument [all...] |
H A D | lm_pf.c | 500 u8_t lm_vf_get_free_resource(u32_t * resource, u8_t min_num, u8_t max_num, u8_t num) argument 510 if (resource[ind] & (1 << offset)) {
|
H A D | lm_resc.c | 34 * This file contains functions that deal with resource allocation and setup 543 lm_resource_idx_t resource; local 547 resource = LM_RESOURCE_NDIS; 551 resource = LM_RESOURCE_ISCSI; 555 resource = LM_RESOURCE_FCOE; 559 resource = LM_RESOURCE_FWD; 563 resource = LM_RESOURCE_OOO; 567 resource = LM_RESOURCE_COMMON; 570 return resource;
|
/illumos-gate/usr/src/uts/i86pc/cpu/genuineintel/ |
H A D | gintel_main.c | 470 nvlist_t *resource; local 521 resource = gintel_gentopo_ereport_create_resource_elem( 524 resource = gintel_ereport_create_resource_elem(nva, 529 DATA_TYPE_NVLIST_ARRAY, 1, &resource, NULL); 530 fm_nvlist_destroy(resource, nva ? FM_NVA_RETAIN:FM_NVA_FREE);
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xpvtap.c | 1401 * Initialize the resource structure. init() returns a handle to be used 1402 * for the rest of the resource functions. This code is written assuming 1417 /* alloc space for resource structure */ 1432 /* Initialize resource structure */ 1477 * alloc a resource. If alloc fails, we are out of resources. 1480 xpvtap_rs_alloc(xpvtap_rs_hdl_t handle, uint_t *resource) argument 1492 ASSERT(resource != NULL); 1501 * Find a free resource. This will return out of the loop once it finds 1502 * a free resource. There are a total of 'max'-'min'+1 resources. 1511 /* if the next resource t 1557 xpvtap_rs_free(xpvtap_rs_hdl_t handle, uint_t resource) argument [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/lib/libshare/common/ |
H A D | libshare_zfs.c | 521 * Add a resource to the share using name as a template. If name == 549 sa_resource_t resource; local 562 * We may need the first share for resource 564 * resource that sets a prefix value. 592 * that at least one resource exist (probably 596 resource = sa_get_share_resource(share, NULL); 597 if (resource == NULL) { 621 sa_resource_t resource; local 658 * least one resource exist (probably SMB). We need to 661 resource 983 sa_resource_t resource; local 1264 sa_share_zfs(sa_share_t share, sa_resource_t resource, char *path, share_t *sh, void *exportdata, zfs_share_op_t operation) argument [all...] |
H A D | libsharecore.c | 81 char *resource; member in struct:sharelist 283 char *resource; local 285 /* resource and/or groupname */ 286 resource = args[optind]; 287 optgroup = strchr(resource, '@'); 292 if (resource != NULL && 293 strlen(resource) > 0) 294 item->resource = 295 strdup(resource); 420 item->resource 1964 sa_resource_t resource; local [all...] |
H A D | libshare.c | 199 ret = dgettext(TEXT_DOMAIN, "no such resource"); 202 ret = dgettext(TEXT_DOMAIN, "resource name required"); 700 else if (xmlStrcmp(node->name, (xmlChar *)"resource") == 0) 1339 * resource names comes into being. 2197 * the case of "resource", enforce a no duplicates in a group rule. If 2206 sa_share_t resource; local 2213 * restrictions on them. Initially, only "resource" has 2215 * of a resource name may exist within a group. 2218 if (strcmp(tag, "resource") == 0) { 2219 resource 2838 sa_resource_t resource = group; local 3671 sa_get_share_resource(sa_share_t share, char *resource) argument 3713 sa_get_next_resource(sa_resource_t resource) argument 3736 sa_resource_t resource; local 3764 sa_add_resource(sa_share_t share, char *resource, int persist, int *error) argument 3830 sa_remove_resource(sa_resource_t resource) argument 3888 proto_rename_resource(sa_handle_t handle, sa_group_t group, sa_resource_t resource, char *newname) argument 3918 sa_rename_resource(sa_resource_t resource, char *newname) argument 3972 sa_get_resource_attr(sa_resource_t resource, char *tag) argument 3986 sa_set_resource_attr(sa_resource_t resource, char *tag, char *value) argument 3999 sa_get_resource_parent(sa_resource_t resource) argument 4018 sa_resource_t resource = NULL; local 4053 sa_resource_t resource = NULL; local 4090 sa_get_resource(sa_group_t group, char *resource) argument 4176 sa_resource_t resource = NULL; local 4224 sa_enable_resource(sa_resource_t resource, char *protocol) argument 4270 sa_disable_resource(sa_resource_t resource, char *protocol) argument 4336 sa_set_resource_description(sa_resource_t resource, char *content) argument 4387 sa_get_resource_description(sa_resource_t resource) argument [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
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...] |
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...] |
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 459 mac_pkt_drop(void *arg, mac_resource_handle_t resource, mblk_t *mp, argument
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | fcode.h | 329 * Define data structures for resource lists and handle management 358 void (*free)(void *); /* function to free the resource */ 359 void *resource; /* Pointer to the resource */ member in struct:fc_untyped_resource 400 #define fc_untyped_r un.r.resource 486 * The 'handle' returned also contains resource information 610 * resource items and resource lists ...
|
/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/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/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/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/uts/common/fs/autofs/ |
H A D | auto_subr.c | 1930 refstr_t *mntpt, *resource; local 1952 resource = vfs_getresource(vfsp); 1953 ul.mntresource = (char *)refstr_value(resource); 1983 refstr_rele(resource);
|
/illumos-gate/usr/src/uts/common/fs/mntfs/ |
H A D | mntvnops.c | 71 * the text entry in /etc/mnttab for a mounted resource, i.e. a vfs_t, and is 74 * the corresponding resource has been unmounted. 78 * that an element exists for each currently mounted resource. Following this, 250 const char *resource, *mntpt; local 253 resource = refstr_value(vfsp->vfs_resource); 256 if (resource != NULL && resource[0] != '\0') { 257 if (resource[0] != '/') { 258 cp += snprintf(cp, MAXPATHLEN, "%s\t", resource); 259 } else if (!ZONE_PATH_VISIBLE(resource, zone 310 const char *resource, *mntpt; local [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_dyndns.c | 648 * name : resource name of this record 653 * data : data of this resource record 657 * entries of the same resource name. Only valid for UPDATE_DEL. 1197 * entries of the same resource name. Only valid for UPDATE_DEL. 1225 char *zone, *resource, *data, zone_buf[100], resrc_buf[100]; local 1263 resource = (char *)hostname; 1311 resource = resrc_buf; /* ip info */ 1335 resource, type, class, ttl, data, update_zone, 1360 * entries of the same resource name. Only valid for UPDATE_DEL. 1412 * entries of the same resource nam [all...] |
/illumos-gate/usr/src/uts/sun4u/io/px/ |
H A D | px_err.c | 1177 nvlist_t *resource = NULL; local 1205 resource = fm_nvlist_create(NULL); 1212 fm_fmri_mem_set(resource, FM_MEM_SCHEME_VERSION, 1219 resource = fm_nvlist_create(NULL); 1224 (void) fm_fmri_cpu_set(resource, 1260 if (resource) { 1275 OBERON_UBC_RESOURCE, DATA_TYPE_NVLIST, resource, 1277 fm_nvlist_destroy(resource, FM_NVA_FREE);
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_svc.c | 1952 * This interface is used by the rmtshare command from the NT resource 2792 * This interface is used by the rmtshare command from the NT resource 2896 sa_resource_t resource; local 2920 resource = sa_get_share_resource(share, sharename); 2921 if (resource == NULL) { 2922 resource = sa_add_resource(share, sharename, 2924 if (resource == NULL) { 2932 (void) sa_set_resource_description(resource, cmnt); 2945 sa_resource_t resource; local 2952 if ((resource 2969 sa_resource_t resource; local 3052 sa_resource_t resource; local [all...] |