/illumos-gate/usr/src/uts/common/sys/ |
H A D | ipc_rctl.h | 31 #include <sys/rctl.h>
|
H A D | rctl.h | 95 * rctl_priv_t: rctl privilege defined values 164 struct rctl; 182 void (*rco_action)(struct rctl *, struct proc *, 184 rctl_qty_t (*rco_get_usage)(struct rctl *, struct proc *); 185 int (*rco_set)(struct rctl *, struct proc *, 187 int (*rco_test)(struct rctl *, struct proc *, 200 void rcop_no_action(struct rctl *, struct proc *, rctl_entity_p_t *); 201 rctl_qty_t rcop_no_usage(struct rctl *, struct proc *); 202 int rcop_no_set(struct rctl *, struct proc *, rctl_entity_p_t *, rctl_qty_t); 203 int rcop_no_test(struct rctl *, struc 214 typedef struct rctl { struct [all...] |
H A D | rctl_impl.h | 31 #include <sys/rctl.h>
|
H A D | cpucaps.h | 40 #include <sys/rctl.h>
|
H A D | project.h | 36 #include <sys/rctl.h>
|
H A D | task.h | 34 #include <sys/rctl.h> 40 #define TASK_PROJ_PURGE 0x100000 /* purge project.* rctl entities */ 78 kstat_t *tk_nprocs_kstat; /* max-processes rctl kstat */
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | rctl.c | 38 #include <sys/rctl.h> 50 * The rctl subsystem provides a mechanism for kernel components to 59 * also wishing to provide additional limits on a given rctl can modify 60 * them once they have the rctl handle. Each subsystem should store the 61 * handle to their rctl for direct access. 68 * advertised to userland; all userland interactions are via the rctl 72 * no ancestor, they inherit their rctls from the rctl dict for project 79 * hash table keyed on the rctl handle assigned at registration. The entries 88 * rctl_set[key] ---> | rctl | --> value <-> value <-> system value --> NULL 93 * That is, the rctl contain 588 rctl_t *rctl = prev; local 635 rctl_t *rctl = rcgp->rcag_ctls; local 651 rctl_t *rctl = rcgp->rcag_ctls; local 976 rctl_set_insert(rctl_set_t *set, rctl_hndl_t hndl, rctl_t *rctl) argument 1113 rctl_t *rctl = rctl_gp_detach_ctl(ragp); local 1138 rctl_dup(rctl_t *rctl, rctl_alloc_gp_t *ragp, struct proc *oldp, struct proc *newp) argument 1448 rctl_set_find(rctl_set_t *set, rctl_hndl_t hndl, rctl_t **rctl) argument 1485 rctl_t *rctl; local 1564 rctl_t *rctl; local 1597 rctl_local_get_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *oval, rctl_val_t *nval) argument 1640 rctl_local_delete_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *oval, rctl_val_t *nval) argument 1689 rctl_local_insert_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *oval, rctl_val_t *nval) argument 1743 rctl_local_insert_all_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *new_values, rctl_val_t *alloc_values) argument 1888 rctl_local_replace_all_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *new_values, rctl_val_t *alloc_values) argument 1979 rctl_local_replace_cb(rctl_hndl_t hndl, struct proc *p, rctl_entity_p_t *e, rctl_t *rctl, rctl_val_t *oval, rctl_val_t *nval) argument 2039 rctl_t *rctl; local 2194 rctl_t *rctl; local 2333 rctl_t *rctl = kmem_cache_alloc(rctl_cache, KM_SLEEP); local [all...] |
H A D | rctl_proc.c | 30 #include <sys/rctl.h> 75 proc_cpu_time_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, argument 92 proc_filesize_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 96 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_native); 98 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_ilp32); 121 proc_stack_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 127 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_native); 129 nv = MIN(nv, rctl->rc_dict_entry->rcd_max_ilp32); 170 proc_nofile_set(rctl_t *rctl, struc argument 194 proc_vmem_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument [all...] |
H A D | project.c | 34 #include <sys/rctl.h> 429 project_cpu_shares_usage(rctl_t *rctl, struct proc *p) argument 437 project_cpu_shares_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 463 project_cpu_cap_get(rctl_t *rctl, struct proc *p) argument 471 project_cpu_cap_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 532 project_lwps_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 589 project_procs_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 642 project_ntasks_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 664 project_shmmax_usage(rctl_t *rctl, struct proc *p) argument 672 project_shmmax_test(struct rctl *rct argument 698 project_shmmni_usage(rctl_t *rctl, struct proc *p) argument 706 project_shmmni_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, rctl_val_t *rval, rctl_qty_t inc, uint_t flags) argument 732 project_semmni_usage(rctl_t *rctl, struct proc *p) argument 740 project_semmni_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, rctl_val_t *rval, rctl_qty_t inc, uint_t flags) argument 766 project_msgmni_usage(rctl_t *rctl, struct proc *p) argument 774 project_msgmni_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, rctl_val_t *rval, rctl_qty_t inc, uint_t flags) argument 796 project_locked_mem_usage(rctl_t *rctl, struct proc *p) argument 808 project_locked_mem_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, rctl_val_t *rval, rctl_qty_t inc, uint_t flags) argument 822 project_locked_mem_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 847 project_contract_test(struct rctl *rctl, struct proc *p, rctl_entity_p_t *e, rctl_val_t *rval, rctl_qty_t inc, uint_t flags) argument [all...] |
H A D | zone.c | 160 * related to the zone.max-lwps rctl. 245 #include <sys/rctl.h> 1314 zone_cpu_shares_usage(rctl_t *rctl, struct proc *p) argument 1322 zone_cpu_shares_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 1346 zone_cpu_cap_get(rctl_t *rctl, struct proc *p) argument 1354 zone_cpu_cap_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, argument 1416 zone_lwps_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 1471 zone_procs_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 1490 zone_shmmax_usage(rctl_t *rctl, struct proc *p) argument 1519 zone_shmmni_usage(rctl_t *rctl, struc argument 1548 zone_semmni_usage(rctl_t *rctl, struct proc *p) argument 1577 zone_msgmni_usage(rctl_t *rctl, struct proc *p) argument 1606 zone_locked_mem_usage(rctl_t *rctl, struct proc *p) argument 1635 zone_locked_mem_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 1655 zone_max_swap_usage(rctl_t *rctl, struct proc *p) argument 1686 zone_max_swap_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument 1706 zone_max_lofi_usage(rctl_t *rctl, struct proc *p) argument 1737 zone_max_lofi_set(rctl_t *rctl, struct proc *p, rctl_entity_p_t *e, rctl_qty_t nv) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | rctl.h | 39 int rctl(uintptr_t, uint_t, int, const mdb_arg_t *);
|
H A D | rctl.c | 30 #include <sys/rctl.h> 71 rctl(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function 73 rctl_t rctl; local 81 if (mdb_vread(&rctl, sizeof (rctl_t), addr) == -1) { 94 if (rctl.rc_id != hndl) 99 (uintptr_t)rctl.rc_dict_entry) == -1) { 101 addr, rctl.rc_dict_entry); 110 mdb_printf("%0?p\t%3d : %s\n", addr, rctl.rc_id, name); 112 if (mdb_pwalk("rctl_val", (mdb_walk_cb_t)print_val, &(rctl.rc_cursor), 193 * If a handle is specified, print only the rctl matchin 418 rctl_t rctl; local 466 rctl_t rctl; local [all...] |
/illumos-gate/usr/src/head/ |
H A D | rctl.h | 32 #include <sys/rctl.h>
|
/illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
H A D | zone.h | 33 #include <sys/rctl.h>
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_rx.c | 153 uint32_t rctl; local 271 rctl = E1000_RCTL_EN | /* Enable Receive Unit */ 278 rctl |= E1000_RCTL_LPE; /* Large Packet Enable bit */ 281 rctl |= E1000_RCTL_SECRC; /* Strip Ethernet CRC */ 287 rctl |= E1000_RCTL_SZ_2048; 291 rctl |= E1000_RCTL_SZ_4096 | E1000_RCTL_BSEX; 294 rctl |= E1000_RCTL_SZ_8192 | E1000_RCTL_BSEX; 297 rctl |= E1000_RCTL_SZ_16384 | E1000_RCTL_BSEX; 299 rctl |= E1000_RCTL_SZ_2048; 303 rctl | 918 uint32_t rctl, rxdctl; local [all...] |
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Project/ |
H A D | Project.pm | 257 # allowunits : allow units (K, M, etc), on rctl values. 769 # Check hashed cache of rctl rules. 789 # Scale values if this is an rctl. 811 'rctl %s has '. 817 'rctl %s has '. 824 'rctl %s value "%s" '. 1005 # exists, and that known attributes are valid. Attributes matching rctl names 1006 # are verified to have valid values given that rctl's global flags and max 1119 # are valid. Attributes matching rctl names are verified to have valid 1120 # values given that rctl' [all...] |
H A D | Project.xs | 15 #include <rctl.h> 259 # For the given rctl name, returns the list 261 # of the system rctl, and $flags are the rctl's
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | rctlsys.c | 35 #include <sys/rctl.h>
|
/illumos-gate/usr/src/cmd/rctladm/ |
H A D | rctladm.c | 33 #include <rctl.h> 255 die(gettext("failed to read rctl configuration from \"%s\""), 449 char *rctl; local 511 rctl = argv[optind]; 514 rctladm_enable(rctl, action); 517 rctladm_disable(rctl, action);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | rctlops.c | 33 #include <rctl.h>
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_82543.c | 1200 u32 icr, rctl; local 1302 rctl = E1000_READ_REG(hw, E1000_RCTL); 1303 rctl &= ~E1000_RCTL_SBP; 1304 E1000_WRITE_REG(hw, E1000_RCTL, rctl); 1316 rctl = E1000_READ_REG(hw, E1000_RCTL); 1317 rctl |= E1000_RCTL_SBP; 1318 E1000_WRITE_REG(hw, E1000_RCTL, rctl);
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | prctl.c | 28 #include <rctl.h> 111 /* global flags of rctl name passed to -n */ 115 /* appropriate scaling variables determined by rctl unit type */ 155 static int match_rctl(struct ps_prochandle *Pr, rctlblk_t **rctl, char *name, 158 static int match_rctl_blk(rctlblk_t *rctl, char *valuestringin, 178 " -t privilege level of rctl values to get\n" 185 " -t privilege level of rctl value to set/replace/delete/modify\n" 188 " -r replace first rctl value of matching privilege\n" 189 " -x delete first rctl value of matching privilege, value, and \n" 191 " -v value of rctl t 1571 match_rctl(struct ps_prochandle *Pr, rctlblk_t **rctl, char *name, char *valuestringin, int valuein, rctl_priv_t privin, int pidin) argument 1644 match_rctl_blk(rctlblk_t *rctl, char *valuestringin, uint64_t valuein, rctl_priv_t privin, int pidin) argument [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 31 #include <sys/rctl.h> 270 rctl_t *rctl; local 280 if (rctl_set_find(rset, hndl, &rctl) == -1) { 286 if (RCTLOP_NO_USAGE(rctl)) { 292 usage = RCTLOP_GET_USAGE(rctl, curproc); 457 /* case for manipulating rctl values on other procs */ 533 /* for manipulating rctl values on this proc */ 698 * Only one basic control is allowed per rctl.
|
H A D | tasksys.c | 44 #include <sys/rctl.h>
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 180 <TSTATE>rctl { return RCTL; }
|