/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | rctlsys.c | 68 rctlctl(const char *name, rctlblk_t *rblk, int flags) argument 70 return (syscall(SYS_rctlsys, 3, name, rblk, NULL, 0, flags));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | rctlops.c | 74 rctlblk_get_global_action(rctlblk_t *rblk) argument 76 rctl_opaque_t *ropaque = (rctl_opaque_t *)rblk; 82 rctlblk_get_local_action(rctlblk_t *rblk, int *signal) argument 84 rctl_opaque_t *ropaque = (rctl_opaque_t *)rblk; 92 rctlblk_get_global_flags(rctlblk_t *rblk) argument 94 rctl_opaque_t *ropaque = (rctl_opaque_t *)rblk; 100 rctlblk_get_local_flags(rctlblk_t *rblk) argument 102 rctl_opaque_t *ropaque = (rctl_opaque_t *)rblk; 108 rctlblk_get_firing_time(rctlblk_t *rblk) argument 110 rctl_opaque_t *ropaque = (rctl_opaque_t *)rblk; 116 rctlblk_get_recipient_pid(rctlblk_t *rblk) argument 124 rctlblk_get_privilege(rctlblk_t *rblk) argument 131 rctlblk_get_value(rctlblk_t *rblk) argument 138 rctlblk_get_enforced_value(rctlblk_t *rblk) argument 145 rctlblk_set_local_action(rctlblk_t *rblk, uint_t action, int signal) argument 154 rctlblk_set_local_flags(rctlblk_t *rblk, uint_t flags) argument 162 rctlblk_set_recipient_pid(rctlblk_t *rblk, id_t pid) argument 169 rctlblk_set_privilege(rctlblk_t *rblk, rctl_priv_t privilege) argument 176 rctlblk_set_value(rctlblk_t *rblk, rctl_qty_t value) argument [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rctlsys.c | 794 rctlsys_ctl(char *name, rctl_opaque_t *rblk, int flags) argument 822 if (copyout(krblk, rblk, sizeof (rctl_opaque_t)) != 0) { 849 if (copyin(rblk, krblk, sizeof (rctl_opaque_t)) != 0) { 885 rctlsys_projset(char *name, rctl_opaque_t *rblk, size_t size, int flags) argument 932 if (copyin(rblk, krblk, sizeof (rctl_opaque_t) * size) == 0) {
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_main.c | 842 rctlblk_t *rblk; local 845 rblk = (rctlblk_t *)malloc(rctlblk_size()); 847 if (rblk != NULL) { 848 rc = getrctl(limit, NULL, rblk, 0); 850 (rctlblk_get_value(rblk) < VS_FILE_DESCRIPTORS)) { 851 rctlblk_set_value(rblk, VS_FILE_DESCRIPTORS); 852 rc = setrctl(limit, NULL, rblk, 0); 854 (void) free(rblk);
|
/illumos-gate/usr/src/cmd/prctl/ |
H A D | prctl.c | 74 rctlblk_t *rblk; member in struct:prctl_value 146 static prctl_value_t *store_value_entry(rctlblk_t *rblk, prctl_list_t *list); 1260 * Store an rblk for a given resource control into the global list. 1265 store_value_entry(rctlblk_t *rblk, prctl_list_t *list) argument 1288 bcopy(rblk, store_blk, rctlblk_size()); 1290 e->rblk = store_blk; 1349 free(old_val->rblk); 1450 global_flags = rctlblk_get_global_flags(iter_val->rblk); 1492 rblk_priv = rctlblk_get_privilege(iter_val->rblk); 1498 rblk_value = rctlblk_get_value(iter_val->rblk); [all...] |
/illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 2170 rctlblk_t *rblk; local 2172 rblk = (rctlblk_t *)alloca(rctlblk_size()); 2173 if (getrctl(name, NULL, rblk, RCTL_FIRST) 2177 return (rctlblk_get_value(rblk)); 2183 rctlblk_t *rblk; local 2185 rblk = (rctlblk_t *)alloca(rctlblk_size()); 2186 if (getrctl(name, NULL, rblk, RCTL_USAGE) 2190 return (rctlblk_get_value(rblk)); 4028 rctlblk_t *rblk, *rblk_last; local 4030 rblk [all...] |
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 3911 get_priv_rctl(struct ps_prochandle *pr, char *name, rctlblk_t *rblk) argument 3913 if (pr_getrctl(pr, name, NULL, rblk, RCTL_FIRST)) 3916 if (rctlblk_get_privilege(rblk) == RCPRIV_PRIVILEGED) 3919 while (pr_getrctl(pr, name, rblk, rblk, RCTL_NEXT) == 0) { 3920 if (rctlblk_get_privilege(rblk) == RCPRIV_PRIVILEGED) 3935 rctlblk_t *rblk; local 3942 if ((rblk = (rctlblk_t *)malloc(rctlblk_size())) == NULL) { 3949 free(rblk); 3960 while (get_priv_rctl(p.pr, rname, rblk)) { [all...] |