/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | setpriority.c | 188 priv_set_t *pset = NULL; local 204 if ((pset = priv_allocset()) != NULL && 205 getppriv(PRIV_EFFECTIVE, pset) == 0 && 206 !priv_ismember(pset, "proc_priocntl")) 208 if (pset != NULL) 209 priv_freeset(pset);
|
H A D | priv_str_xlate.c | 84 priv_set_t *pset = NULL; local 92 (pset = priv_allocset()) == NULL) { 98 priv_emptyset(pset); 110 priv_union(basic, pset); 112 priv_emptyset(pset); 114 priv_fillset(pset); 116 priv_union(zone, pset); 127 priv_freeset(pset); 134 PRIV_DELSET(pset, privid); 136 PRIV_ADDSET(pset, privi 173 __priv_set_to_str( priv_data_t *d, const priv_set_t *pset, char separator, int flag) argument 340 priv_set_to_str(const priv_set_t *pset, char separator, int flag) argument [all...] |
H A D | ucred.c | 217 int pset = priv_getsetbyname(set); local 220 if (pr == NULL || pset == -1) { 228 &pr->pr_sets[d->pd_pinfo->priv_setsize * pset]);
|
H A D | privlib.c | 382 priv_set_t *pset = priv_allocset(); local 385 if (pset == NULL) 388 priv_emptyset(pset); 391 if (priv_addset(pset, priv) < 0) { 392 priv_freeset(pset); 396 return (pset); 410 priv_set_t *pset; local 415 pset = priv_vlist(ap); 419 if (pset == NULL) 431 set, (void *)pset, [all...] |
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | ppriv.c | 41 setppriv(priv_op_t op, priv_ptype_t type, const priv_set_t *pset) argument 50 return (syscall(SYS_privsys, PRIVSYS_SETPPRIV, op, set, (void *)pset, 55 getppriv(priv_ptype_t type, priv_set_t *pset) argument 64 return (syscall(SYS_privsys, PRIVSYS_GETPPRIV, 0, set, (void *)pset,
|
H A D | psetsys.c | 31 #include <sys/pset.h> 46 pset_destroy(psetid_t pset) argument 48 return (_pset(PSET_DESTROY, pset)); 52 pset_assign(psetid_t pset, processorid_t cpu, psetid_t *opset) argument 54 return (_pset(PSET_ASSIGN, pset, cpu, opset)); 58 pset_assign_forced(psetid_t pset, processorid_t cpu, psetid_t *opset) argument 60 return (_pset(PSET_ASSIGN_FORCED, pset, cpu, opset)); 64 pset_info(psetid_t pset, int *type, uint_t *numcpus, processorid_t *cpulist) argument 66 return (_pset(PSET_INFO, pset, type, numcpus, cpulist)); 70 pset_bind(psetid_t pset, idtype_ argument 76 pset_bind_lwp(psetid_t pset, id_t id, pid_t pid, psetid_t *opset) argument 85 pset_getloadavg(psetid_t pset, double loadavg[], int nelem) argument 108 pset_setattr(psetid_t pset, uint_t attr) argument 114 pset_getattr(psetid_t pset, uint_t *attr) argument [all...] |
/osnet-11/usr/src/lib/libnetcfg/common/ |
H A D | libnetcfg_zio.c | 179 priv_set_t *pset; local 182 if ((pset = priv_allocset()) == NULL) 185 if (getppriv(PRIV_PERMITTED, pset) == -1) { 189 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, pset) == -1) 193 priv_freeset(pset);
|
H A D | libnetcfg_util.c | 46 priv_set_t *pset; local 49 if ((pset = priv_allocset()) == NULL) 52 priv_basicset(pset); 53 if (priv_delset(pset, PRIV_NET_ACCESS) == 0) 54 (void) setppriv(PRIV_SET, PRIV_EFFECTIVE, pset); 56 priv_freeset(pset); 69 priv_set_t *pset; local 72 if ((pset = priv_str_to_set("zone", ",", NULL)) == NULL) 74 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, pset) == -1) 76 priv_freeset(pset); [all...] |
/osnet-11/usr/src/lib/libnsl/xpol/ |
H A D | xpol_lib.c | 349 add_rule(xpol_ctxt_t *ctxt, char *rule, priv_set_t *pset) argument 365 res = xpol_context_add_rule_path(ctxt, pset, mstr); 368 if (!priv_ismember(pset, PRIV_NET_PRIVADDR) && 369 !priv_ismember(pset, PRIV_NET_BINDMLP)) 392 res = xpol_context_add_rule_ports(ctxt, pset, type, min, max); 395 if (!priv_ismember(pset, PRIV_PROC_SETID)) 408 res = xpol_context_add_rule_uids(ctxt, pset, min, max); 411 priv_freeset(pset);
|
/osnet-11/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 34 #include <sys/pset.h> 56 * which changes whenever the hierarchy changes (eg. DR or pset contents 377 * Get CPUs in caller's pset 392 * Remove any CPUs not in caller's pset from lgroup hierarchy. 409 * caller's pset to all lgroups available to caller, starting by 522 * Keep caller's pset ID for caller's view 526 psetid_t pset; local 528 if (pset_bind(PS_QUERY, P_LWPID, P_MYID, &pset) == -1) 531 snap->ss_pset = pset; 549 * overlapping caller's pset t 572 psetid_t pset; local [all...] |
/osnet-11/usr/src/lib/hal/libhal/common/ |
H A D | libhal.c | 2627 LibHalPropertySet *pset; local 2634 if ((pset = libhal_device_get_all_properties (ctx, udi, error)) == NULL) 2637 for (libhal_psi_init (&i, pset); libhal_psi_has_more (&i); 2688 libhal_free_property_set (pset);
|
/osnet-11/usr/src/lib/libipadm/common/ |
H A D | ipadm_addr.c | 3795 priv_set_t *pset; local 3797 if ((pset = priv_allocset()) == NULL || 3798 getppriv(PRIV_EFFECTIVE, pset) != 0 || 3799 !priv_ismember(pset, "net_rawaccess")) { 3801 priv_freeset(pset); 3804 priv_freeset(pset);
|
/osnet-11/usr/src/lib/libzonestat/common/ |
H A D | libzonestat.c | 403 * all pset usages that exist in the new pset. 447 /* Add pset's time so far to the zone usage */ 462 * pset. Leave pset_zone in old interval, but do not 465 * For total utilization, add pset time to zone that 466 * has run in this pset before. 469 /* Add new pset time to the zone usage */ 480 * Zone is using pset in both start and end interval. Compute 504 * If pset usage has been destroyed and re-created 532 /* No need to add new pset zon 1372 zs_pset_name(struct zs_pset *pset) argument 1378 zs_pset_id(struct zs_pset *pset) argument 1384 zs_pset_size(struct zs_pset *pset) argument 1390 zs_pset_online(struct zs_pset *pset) argument 1396 zs_pset_min(struct zs_pset *pset) argument 1402 zs_pset_max(struct zs_pset *pset) argument 1408 zs_pset_schedulers(struct zs_pset *pset) argument 1420 zs_pset_load(struct zs_pset *pset, int load) argument 1426 zs_pset_cpu_shares(struct zs_pset *pset) argument 1444 zs_pset_cputype(struct zs_pset *pset) argument 1450 zs_pset_usage_all(struct zs_pset *pset, timestruc_t *ts) argument 1460 zs_pset_usage_idle(struct zs_pset *pset, timestruc_t *ts) argument 1472 zs_pset_usage_kernel(struct zs_pset *pset, timestruc_t *ts) argument 1478 zs_pset_usage_zones(struct zs_pset *pset, timestruc_t *ts) argument 1484 zs_pset_usage_all_pct(struct zs_pset *pset) argument 1495 zs_pset_usage_idle_pct(struct zs_pset *pset) argument 1507 zs_pset_usage_kernel_pct(struct zs_pset *pset) argument 1514 zs_pset_usage_zones_pct(struct zs_pset *pset) argument 1521 zs_pset_usage_all_cpus(struct zs_pset *pset) argument 1532 zs_pset_usage_idle_cpus(struct zs_pset *pset) argument 1545 zs_pset_usage_kernel_cpus(struct zs_pset *pset) argument 1552 zs_pset_usage_zones_cpus(struct zs_pset *pset) argument 1602 struct zs_pset *pset = pz->zspz_pset; local 2566 struct zs_pset *pset = NULL; local 3099 struct zs_pset *pset, *ptmp; local 4797 struct zs_pset *pset, *tmp; local 4822 struct zs_pset *pset = (struct zs_pset *)pin; local 4878 struct zs_pset *pset = (struct zs_pset *)pin; local 4951 struct zs_pset *pset = (struct zs_pset *)pin; local 4959 struct zs_pset *pset = (struct zs_pset *)pin; local 4970 struct zs_pset *pset = (struct zs_pset *)pin; local 4996 struct zs_pset *pset = (struct zs_pset *)pin; local 5023 struct zs_pset *pset = (struct zs_pset *)pin; local 5048 struct zs_pset *pset = (struct zs_pset *)pin; local 5075 struct zs_pset *pset = (struct zs_pset *)pin; local [all...] |
/osnet-11/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 100 #define DTD_ELEM_PSET (const xmlChar *) "pset" 4996 if ((res = pool_resource_create(pconf, "pset", name)) == NULL) 5008 /* set the maximum number of cpus for the pset */ 5011 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) { 5016 /* set the minimum number of cpus for the pset */ 5019 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) { 5108 get_running_tmp_pset(pool_conf_t *pconf, pool_t *pool, pool_resource_t *pset, argument 5129 if (pset != NULL) { 5130 pe = pool_resource_to_elem(pconf, pset); 5131 if (pool_get_property(pconf, pe, "pset 5167 pool_resource_t *pset; local 5238 pool_resource_t *pset; local [all...] |