/illumos-gate/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 | klpdlib.c | 69 priv_set_t *pset; local 78 pset = KLH_PRIVSET(klh); 99 if (p->kd_callback(p->kd_user_cookie, pset, &ctx))
|
H A D | ucred.c | 218 int pset = priv_getsetbyname(set); local 221 if (pr == NULL || pset == -1) { 229 &pr->pr_sets[d->pd_pinfo->priv_setsize * pset]);
|
H A D | priv_str_xlate.c | 82 priv_set_t *pset = NULL; local 90 (pset = priv_allocset()) == NULL) { 96 priv_emptyset(pset); 108 priv_union(basic, pset); 110 priv_emptyset(pset); 112 priv_fillset(pset); 114 priv_union(zone, pset); 125 priv_freeset(pset); 132 PRIV_DELSET(pset, privid); 134 PRIV_ADDSET(pset, privi 171 __priv_set_to_str( priv_data_t *d, const priv_set_t *pset, char separator, int flag) argument 338 priv_set_to_str(const priv_set_t *pset, char separator, int flag) argument [all...] |
/illumos-gate/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...] |
/illumos-gate/usr/src/cmd/pfexec/ |
H A D | pfexec.c | 98 char *pset = NULL; local 141 if (pset == NULL) { 142 pset = optarg; 155 if (pset != NULL) { 156 if ((wanted = priv_str_to_set(pset, ",", NULL)) ==
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_main.c | 124 priv_set_t *pset = priv_allocset(); local 130 if (pset != NULL) { 131 priv_basicset(pset); 132 (void) priv_addset(pset, PRIV_PROC_AUDIT); 133 (void) priv_addset(pset, PRIV_PROC_SETID); 134 (void) priv_addset(pset, PRIV_PROC_OWNER); 135 (void) priv_addset(pset, PRIV_FILE_CHOWN); 136 (void) priv_addset(pset, PRIV_FILE_CHOWN_SELF); 137 (void) priv_addset(pset, PRIV_FILE_DAC_READ); 138 (void) priv_addset(pset, PRIV_FILE_DAC_SEARC [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 57 priv_set_t pset, *target; local 65 if (copyin(in_pset, &pset, sizeof (priv_set_t))) 76 audit_setppriv(op, type, &pset, pcr); 90 !priv_issubset(&pset, &CR_LPRIV(pcr))) { 95 if (!priv_issubset(&pset, &CR_OPPRIV(pcr)) && 96 !priv_issubset(&pset, priv_getset(pcr, type))) { 100 !priv_issubset(&pset, &CR_LPRIV(pcr)) || 101 secpolicy_require_privs(CRED(), &pset) != 0) { 134 priv_union(&pset, target); 137 priv_inverse(&pset); 208 getppriv(priv_ptype_t type, priv_set_t *pset) argument [all...] |
H A D | pset.c | 35 #include <sys/pset.h> 47 static int pset(int, long, long, long, long); 52 (int (*)())pset, 61 &mod_syscallops32, "32-bit pset(2) syscall", &pset_sysent 117 pset_destroy(psetid_t pset) argument 129 error = cpupart_destroy(pset); 138 pset_assign(psetid_t pset, processorid_t cpuid, psetid_t *opset, int forced) argument 144 if (pset != PS_QUERY && secpolicy_pset(CRED()) != 0) 148 if (pset != PS_QUERY && pool_state == POOL_ENABLED) { 162 if (pset ! 178 pset_info(psetid_t pset, int *typep, uint_t *numcpusp, processorid_t *cpulistp) argument 241 pset_bind_thread(kthread_t *tp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 298 pset_bind_process(proc_t *pp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 329 pset_bind_task(task_t *tk, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 356 pset_bind_project(kproject_t *kpj, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 381 pset_bind_zone(zone_t *zptr, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 408 pset_unbind(psetid_t pset, void *projbuf, void *zonebuf, idtype_t idtype) argument 450 pset_bind_contract(cont_process_t *ctp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument 476 pset_bind_lwp(psetid_t pset, id_t id, pid_t pid, psetid_t *opset) argument 533 pset_bind(psetid_t pset, idtype_t idtype, id_t id, psetid_t *opset) argument 708 pset_getloadavg(psetid_t pset, int *buf, int nelem) argument 804 pset_setattr(psetid_t pset, uint_t attr) argument 828 pset_getattr(psetid_t pset, uint_t *attrp) argument 843 pset(int subcode, long arg1, long arg2, long arg3, long arg4) function [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_highres.c | 38 #include <sys/pset.h> 113 int pset; local 215 pset = t->t_bind_pset; 219 cyclic_bind(cyc, cpu, pset == PS_NONE ? NULL : cpupart); 326 int pset; local 339 pset = t->t_bind_pset; 349 cyclic_bind(cyc, cpu, pset == PS_NONE ? NULL : cpupart);
|
H A D | pool_pset.c | 59 * pset of the pool to which they are bound. This is accomplished by 64 * the pset the zone is currently bound to, and can read this value 84 pool_pset_t *pool_pset_default; /* default pset */ 91 pool_pset_t *pset = pool_pset_default; local 95 for (pset = list_head(&pool_pset_list); pset; 96 pset = list_next(&pool_pset_list, pset)) { 97 if (pset->pset_id == psetid) 98 return (pset); 340 pool_pset_t *pset; local 367 pool_pset_t *pset; local 490 pool_pset_t *pset, *oldpset; local 721 pool_pset_t *pset; local 740 pool_pset_t *pset; local 846 pool_pset_t *pset; local 930 pool_pset_t *pset; local [all...] |
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_main.c | 368 priv_set_t *pset; local 373 if ((pset = priv_allocset()) == NULL) 386 priv_basicset(pset); 387 (void) priv_delset(pset, PRIV_PROC_EXEC); 388 (void) priv_delset(pset, PRIV_PROC_INFO); 389 (void) priv_delset(pset, PRIV_PROC_SESSION); 390 (void) priv_delset(pset, PRIV_FILE_LINK_ANY); 393 if (priv_addset(pset, PRIV_SYS_CONFIG) == -1 || 394 priv_addset(pset, PRIV_SYS_DL_CONFIG) == -1) 397 (void) priv_delset(pset, PRIV_PROC_FOR [all...] |
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | walkers.c | 200 int *pset = (int *)data; local 204 if (*pset && c1->cs_pset_id != c2->cs_pset_id) { 205 (void) printf("<<processor %d moved from pset: %d to: %d>>\n", 227 (void) printf("<<pset destroyed: %u>>\n", p1->ps_id); 232 (void) printf("<<pset created: %u>>\n", p2->ps_id); 334 int pset; local 342 pset = old->s_types & SNAP_PSETS; 348 (void) snapshot_walk(SNAP_CPUS, old, new, cpu_report, &pset); 358 if (pset) {
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 476 priv_set_t *eset, *pset; local 518 pset = (priv_set_t *) 534 (void) priv_addset(pset, PRIV_SYS_RESOURCE);
|
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 39 #include <sys/pset.h> 61 * which changes whenever the hierarchy changes (eg. DR or pset contents 324 * Get CPUs in caller's pset 339 * Remove any CPUs not in caller's pset from lgroup hierarchy 355 * caller's pset to all lgroups available to caller, starting by 468 * Keep caller's pset ID for caller's view 472 psetid_t pset; local 474 if (pset_bind(PS_QUERY, P_LWPID, P_MYID, &pset) == -1) 477 snap->ss_pset = pset; 495 * overlapping caller's pset t 518 psetid_t pset; local [all...] |
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | funcs.c | 393 check_privset(const char *pset) argument 398 tmp = priv_str_to_set(pset, ",", &res);
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | plcysubr.c | 467 priv_set_t *pset; local 482 pset = priv_str_to_set(val, ",", &perr); 483 if (pset == NULL) { 493 priv_copyset(pset, item); 494 priv_freeset(pset);
|
/illumos-gate/usr/src/cmd/intrstat/ |
H A D | intrstat.c | 270 select_pset(psetid_t pset) argument 274 if (pset < 0) 275 fatal("processor set %d is out of range\n", pset); 293 g_pset = pset; 457 psetid_t pset = strtoul(optarg, &end, 0); local 460 (pset == ULONG_MAX && errno == ERANGE)) 463 select_pset(pset);
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_main.c | 383 priv_set_t *pset; local 395 pset = priv_allocset(); 396 if (pset == NULL) 399 priv_basicset(pset); 402 (void) priv_addset(pset, PRIV_NET_MAC_AWARE); 403 (void) priv_addset(pset, PRIV_NET_PRIVADDR); 404 (void) priv_addset(pset, PRIV_PROC_AUDIT); 405 (void) priv_addset(pset, PRIV_SYS_DEVICES); 406 (void) priv_addset(pset, PRIV_SYS_SMB); 407 (void) priv_addset(pset, PRIV_SYS_MOUN [all...] |
/illumos-gate/usr/src/cmd/newtask/ |
H A D | newtask.c | 520 priv_set_t *eset, *pset; local 557 pset = (priv_set_t *)&new_prpriv->pr_sets[new_prpriv->pr_setsize * ind]; 562 priv_union(nset, pset);
|
/illumos-gate/usr/src/cmd/ptools/ppriv/ |
H A D | ppriv.c | 274 priv_set_t *pset = (priv_set_t *)pc; local 279 s = __priv_set_to_str(pdata, pset, ',', mode); 281 s = priv_set_to_str(pset, ',', mode); 631 priv_set_t *pset = priv_str_to_set(*argv, ",", NULL); local 633 if (pset == NULL) { 640 if (priv_ismember(pset, pname))
|
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
H A D | Objective.java | 237 registerObjectives(props, objectives, "pset"); 356 Value val = new Value("type", "pset"); 375 res.getLongProperty("pset.min"), 376 res.getLongProperty("pset.max")); 659 * for each LGroup in the pset. 668 private Resource pset; field in class:PSETData 685 * Count the number of cpu in each locality group in this pset 686 * and count the number of locality groups in this pset. 695 List cpuList = pset.getComponents(null); 738 * Calulate results for all locality groups for this pset [all...] |
/illumos-gate/usr/src/cmd/psrset/ |
H A D | psrset.c | 36 #include <sys/pset.h> 137 bind_err(psetid_t pset, const char *zname, id_t pid, id_t lwpid, int err) argument 141 switch (pset) { 166 create_out(psetid_t pset) argument 168 (void) printf("%s %d\n", gettext("created processor set"), pset); 198 query_out(id_t pid, id_t lwpid, psetid_t pset) argument 211 if (pset == PS_NONE) 215 (void) printf(gettext("%s id %s: %d\n"), proclwp, pidstr, pset); 222 info_out(psetid_t pset, int type, uint_t numcpus, processorid_t *cpus) argument 226 (void) printf(gettext("system processor set %d:"), pset); 244 print_out(processorid_t cpu, psetid_t pset) argument 287 bind_lwp(id_t pid, id_t lwpid, psetid_t pset) argument 304 do_cpu(psetid_t pset, processorid_t cpu, int print, int mustexist) argument 336 do_range(psetid_t pset, processorid_t first, processorid_t last, int print) argument 357 do_info(psetid_t pset) argument 381 do_destroy(psetid_t pset) argument 392 do_intr(psetid_t pset, int flag) argument 471 psetid_t pset; local 528 exec_cmd(psetid_t pset, char **argv) argument 567 do_lwps(id_t pid, const char *range, psetid_t pset) argument 646 psetid_t pset, old_pset; local [all...] |
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | gnttab.c | 511 gnttab_setup(gnttab_setup_table_t *pset) argument 515 frames = kmem_alloc(pset->nr_frames * sizeof (gnttab_frame_t), 519 set_xen_guest_handle(pset->frame_list, frames); 523 * Take pset->nr_frames pages of grant table space from 526 if ((HYPERVISOR_grant_table_op(GNTTABOP_setup_table, pset, 1) != 0) || 527 (pset->status != 0)) {
|