Searched defs:resource (Results 1 - 25 of 66) sorted by relevance

123

/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getrlimit.c34 #include <sys/resource.h>
42 int resource, struct rlimit *rlp)
51 return (getrlimit(resource, rlp));
53 adp = &argd[0]; /* resource argument */
54 adp->arg_value = resource;
90 int resource, const struct rlimit *rlp)
99 return (setrlimit(resource, rlp));
101 adp = &argd[0]; /* resource argument */
102 adp->arg_value = resource;
138 int resource, struc
41 pr_getrlimit(struct ps_prochandle *Pr, int resource, struct rlimit *rlp) argument
89 pr_setrlimit(struct ps_prochandle *Pr, int resource, const struct rlimit *rlp) argument
137 pr_getrlimit64(struct ps_prochandle *Pr, int resource, struct rlimit64 *rlp) argument
185 pr_setrlimit64(struct ps_prochandle *Pr, int resource, const struct rlimit64 *rlp) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-memstat.c38 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 Dtopo_protocol.c83 topo_node_resource(tnode_t *node, nvlist_t **resource, int *err) argument
87 TOPO_PROP_RESOURCE, resource, err));
/illumos-gate/usr/src/cmd/policykit/
H A Dpolkit-is-privileged.c43 "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/lib/print/libhttp-core/common/
H A Dhttp-support.c71 char *resource) /* O - Resource/filename [1024] */
74 port, resource, HTTP_MAX_URI);
92 char *resource, /* O - Resource/filename */
93 int resourcelen) /* I - Size of resource buffer */
105 port == NULL || resource == NULL)
140 strlcpy(resource, ptr, resourcelen);
144 resource[0] = '\0';
149 * OK, we have "hostname:port[/resource]"...
155 strlcpy(resource, uri, resourcelen);
169 * If the method starts with less than 2 slashes then it is a local resource
66 httpSeparate(const char *uri, char *method, char *username, char *host, int *port, char *resource) argument
84 httpSeparate2(const char *uri, char *method, int methodlen, char *username, int usernamelen, char *host, int hostlen, int *port, char *resource, int resourcelen) argument
[all...]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/
H A DResource.java35 * 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/uts/i86pc/io/ioat/
H A Dioat_rs.c41 * Bounds of resource allocation. We will start allocating at rs_min
49 * rs_free points to an array of 64-bit values used to track resource
56 * last tracks the last alloc'd resource. This allows us to do a round
67 * Initialize the resource structure. This structure will be protected
69 * used for the rest of the resource functions. This code is written assuming
85 /* alloc space for resource structure */
100 /* Initialize resource structure */
145 * alloc a resource. If alloc fails, we are out of resources.
148 ioat_rs_alloc(ioat_rs_hdl_t handle, uint_t *resource) argument
160 ASSERT(resource !
225 ioat_rs_free(ioat_rs_hdl_t handle, uint_t resource) argument
[all...]
/illumos-gate/usr/src/lib/policykit/libpolkit/common/
H A Dlibpolkit-rbac.c120 const char *resource,
213 const char *resource,
116 libpolkit_is_uid_allowed_for_privilege(LibPolKitContext *ctx, const char *system_bus_unique_name, const char *user, const char *privilege, const char *resource, gboolean *out_is_allowed, gboolean *out_is_temporary, char **out_is_privileged_but_restricted_to_system_bus_unique_name) argument
210 libpolkit_revoke_temporary_privilege(LibPolKitContext *ctx, const char *user, const char *privilege, const char *resource, gboolean *result) argument
/illumos-gate/usr/src/lib/libstmf/common/
H A Dlibstmf_impl.h37 void *resource; member in struct:_luResourceImpl
/illumos-gate/usr/src/cmd/pools/poolcfg/
H A Dpoolcfg.y78 " 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/uts/common/syscall/
H A Drlimit.c42 #include <sys/resource.h>
282 * In the 64-bit kernel, all existing resource limits are treated in this
285 * RLIM_SAVED(x), returns true if the resource limit should be handled in
289 getrlimit32(int resource, struct rlimit32 *rlp) argument
298 if (resource < 0 || resource >= RLIM_NLIMITS)
302 (void) rctl_rlimit_get(rctlproc_legacy[resource], p, &rlim64);
313 ASSERT(RLIM_SAVED(resource));
322 ASSERT(RLIM_SAVED(resource));
327 ASSERT(RLIM_SAVED(resource));
366 setrlimit32(int resource, struct rlimit32 *rlp) argument
442 getrlimit64(int resource, struct rlimit64 *rlp) argument
460 setrlimit64(int resource, struct rlimit64 *rlp) argument
[all...]
/illumos-gate/usr/src/lib/libshare/common/
H A Dplugin.c302 * sa_proto_share_resource(char *proto, sa_resource_t resource)
304 * For protocols that actually enable at the resource level, do the
305 * protocol specific resource enable. If it doesn't, return an error.
306 * Note that the resource functions are optional so can return
311 sa_proto_share_resource(char *proto, sa_resource_t resource) argument
318 ret = ops->sa_enable_resource(resource);
326 * sa_proto_unshare_resource(char *proto, sa_resource_t resource)
328 * For protocols that actually disable at the resource level, do the
329 * protocol specific resource disable. If it doesn't, return an error.
333 sa_proto_unshare_resource(char *proto, sa_resource_t resource) argument
625 sa_proto_notify_resource(sa_resource_t resource, char *proto) argument
697 sa_proto_rename_resource(sa_handle_t handle, char *proto, sa_resource_t resource, char *newname) argument
[all...]
H A Dscfutil.c411 * Make a resource node on the share node. The valusestr will either
440 node = xmlNewChild(node, NULL, (xmlChar *)"resource", NULL);
536 } else if (strcmp(name, "resource") == 0) {
557 } else if (strcmp(name, "resource") == 0) {
561 * "resource" id must be preserved since this
667 * Search the resource records on the share for the id index.
672 sa_resource_t resource; local
676 for (resource = sa_get_share_resource(share, NULL);
677 resource != NULL && found == NULL;
678 resource
775 sa_resource_t resource; local
1500 sa_resource_t resource; local
1531 sa_resource_t resource; local
1818 sa_resource_t resource; local
[all...]
/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dlibfsmgt.h57 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...]
H A Dnfs_mntinfo.c99 nfs_get_filtered_mount_list(char *resource, char *mountp, char *mntopts, argument
105 fs_mount_list = fs_get_filtered_mount_list(resource, mountp,
337 if ((mrp->nml_resource = strdup(fsmnt_list->resource))
365 * If the number of servers is not 1 then resource is
H A Dfs_dfstab.c46 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 Dfs_mounts.c52 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...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_protocol.c115 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/uts/common/os/
H A Dndifm.c100 * access to the bus resource. Exclusivity guarantees that a fault
176 * Allocate and initialize a fault management resource cache
221 ndi_fmc_insert(dev_info_t *dip, int flag, void *resource, void *bus_specific) argument
241 fpp = &((ddi_dma_impl_t *)resource)->dmai_error.err_fep;
249 fpp = &((ddi_acc_impl_t *)resource)->ahi_err->err_fep;
259 * Set-up the handle resource and bus_specific information.
263 fep->fce_resource = resource;
285 ndi_fmc_remove(dev_info_t *dip, int flag, const void *resource) argument
300 /* Find cache entry pointer for this resource */
310 fep = ((ddi_dma_impl_t *)resource)
[all...]
/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c70 " 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/tools/scripts/
H A Dwsdiff.py73 import re, resource, select, shutil, signal, string, struct, sys, tempfile namespace
1380 # Set resource limit for number of open files as high as possible.
1383 (nofile_soft, nofile_hard) = resource.getrlimit(resource.RLIMIT_NOFILE)
1385 resource.setrlimit(resource.RLIMIT_NOFILE,
1388 error("cannot set resource limits for number of open files")
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DDecisionHistory.java94 * 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/rcm_daemon/common/
H A Dnetwork_rcm.c66 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...]
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c357 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/lib/fm/topo/modules/i86pc/chip/
H A Dchip_subr.c223 * 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);

Completed in 298 milliseconds

123