Home
last modified time | relevance | path

Searched refs:kpj (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/uts/common/syscall/
H A Dtasksys.c71 kproject_t *kpj; in tasksys_settaskid() local
106 kpj = project_hold_by_id(projid, p->p_zone, PROJECT_HOLD_INSERT); in tasksys_settaskid()
107 e.rcep_p.proj = kpj; in tasksys_settaskid()
117 if (kpj->kpj_nlwps + p->p_lwpcnt > kpj->kpj_nlwps_ctl) in tasksys_settaskid()
118 if (rctl_test_entity(rc_project_nlwps, kpj->kpj_rctls, p, &e, in tasksys_settaskid()
122 if (kpj->kpj_ntasks + 1 > kpj->kpj_ntasks_ctl) in tasksys_settaskid()
123 if (rctl_test_entity(rc_project_ntasks, kpj->kpj_rctls, p, &e, in tasksys_settaskid()
127 if (kpj != proj0p && kpj->kpj_nprocs + 1 > kpj->kpj_nprocs_ctl) in tasksys_settaskid()
128 if (rctl_test_entity(rc_project_nprocs, kpj->kpj_rctls, p, &e, in tasksys_settaskid()
132 if (kpj->kpj_data.kpd_locked_mem + p->p_locked_mem > in tasksys_settaskid()
[all …]
H A Dprocessor_bind.c112 cpu_bind_project(kproject_t *kpj, processorid_t bind, processorid_t *obind, in cpu_bind_project() argument
124 if (p->p_task->tk_proj == kpj && !(p->p_flag & SSYS)) { in cpu_bind_project()
197 kproject_t *kpj; in processor_bind() local
294 if ((kpj = project_hold_by_id(id, pp->p_zone, in processor_bind()
299 ret = cpu_bind_project(kpj, bind, &obind, &err); in processor_bind()
301 project_rele(kpj); in processor_bind()
H A Dpset.c356 pset_bind_project(kproject_t *kpj, psetid_t pset, psetid_t *oldpset, in pset_bind_project() argument
367 if (pp->p_task->tk_proj == kpj && !(pp->p_flag & SSYS)) { in pset_bind_project()
538 kproject_t *kpj; in pset_bind() local
629 if ((kpj = project_hold_by_id(id, pp->p_zone, in pset_bind()
635 error = pset_bind_project(kpj, pset, &oldpset, projbuf, in pset_bind()
638 project_rele(kpj); in pset_bind()
/illumos-gate/usr/src/uts/common/disp/
H A Dcpucaps.c364 cap_project_enable(kproject_t *kpj, hrtime_t value) in cap_project_enable() argument
366 cpucap_t *cap = kpj->kpj_cpucap; in cap_project_enable()
374 cap->cap_project = kpj; in cap_project_enable()
375 cap->cap_zone = kpj->kpj_zone; in cap_project_enable()
380 if ((cap->cap_kstat = rctl_kstat_create_project(kpj, "cpucaps", in cap_project_enable()
401 cap_project_disable(kproject_t *kpj) in cap_project_disable() argument
403 cpucap_t *cap = kpj->kpj_cpucap; in cap_project_disable()
407 ASSERT(cap->cap_project == kpj); in cap_project_disable()
598 cap_project_zone_modify_walker(kproject_t *kpj, void *arg) in cap_project_zone_modify_walker() argument
605 if (kpj->kpj_cpucap == NULL) { in cap_project_zone_modify_walker()
[all …]
H A Dfss.c454 fss_project_walker(kproject_t *kpj, void *buf) in fss_project_walker() argument
678 fss_find_fssproj(fsspset_t *fsspset, kproject_t *kpj) in fss_find_fssproj() argument
691 if (fssproj->fssp_proj == kpj) { in fss_find_fssproj()
706 fss_insert_fssproj(fsspset_t *fsspset, kproject_t *kpj, fsszone_t *fsszone, in fss_insert_fssproj() argument
712 fssproj->fssp_proj = kpj; in fss_insert_fssproj()
713 fssproj->fssp_shares = kpj->kpj_shares; in fss_insert_fssproj()
1629 kproject_t *kpj; in fss_enterclass() local
1710 kpj = ttoproj(t); in fss_enterclass()
1711 if ((fssproj = fss_find_fssproj(fsspset, kpj)) == NULL) { in fss_enterclass()
1721 fss_insert_fssproj(fsspset, kpj, fsszone, fssproj); in fss_enterclass()
[all …]
H A Dthread.c563 kproject_t *kpj; in thread_rele() local
568 kpj = ttoproj(t); in thread_rele()
573 if (kpj != proj0p) { in thread_rele()
574 project_rele(kpj); in thread_rele()
/illumos-gate/usr/src/uts/common/os/
H A Dpool.c1357 kproject_t *kpj = NULL; in pool_do_bind() local
1381 kpj = project_hold_by_id(id, global_zone, PROJECT_HOLD_FIND); in pool_do_bind()
1382 if (kpj == NULL) in pool_do_bind()
1384 mutex_enter(&kpj->kpj_poolbind); in pool_do_bind()
1709 ASSERT(kpj != NULL); in pool_do_bind()
1710 mutex_exit(&kpj->kpj_poolbind); in pool_do_bind()
1711 project_rele(kpj); in pool_do_bind()
H A Dtask.c774 changeproj(proc_t *p, kproject_t *kpj, zone_t *zone, void *projbuf, in changeproj() argument
785 (void) project_hold(kpj); in changeproj()
804 t->t_proj = kpj; in changeproj()
807 fss_changeproj(t, kpj, zone, projbuf, zonebuf); in changeproj()
H A Dproject.c474 kproject_t *kpj = e->rcep_p.proj; in project_cpu_cap_set() local
478 if (kpj == NULL) in project_cpu_cap_set()
484 return (cpucaps_project_set(kpj, nv)); in project_cpu_cap_set()
H A Drctl.c3155 rctl_kstat_create_project(kproject_t *kpj, char *ks_name, uchar_t ks_type, in rctl_kstat_create_project() argument
3162 return (rctl_kstat_create_common(name, kpj->kpj_id, "project_caps", in rctl_kstat_create_project()
3163 ks_type, ks_ndata, ks_flags, kpj->kpj_zoneid)); in rctl_kstat_create_project()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c6903 kproject_t *kpj; in crypto_buffer_check() local
6909 kpj = curproc->p_task->tk_proj; in crypto_buffer_check()
6910 mutex_enter(&(kpj->kpj_data.kpd_crypto_lock)); in crypto_buffer_check()
6912 if (kpj->kpj_data.kpd_crypto_mem + need > in crypto_buffer_check()
6913 kpj->kpj_data.kpd_crypto_mem_ctl) { in crypto_buffer_check()
6915 kpj->kpj_rctls, curproc, need, 0) & RCT_DENY) { in crypto_buffer_check()
6916 mutex_exit(&(kpj->kpj_data.kpd_crypto_lock)); in crypto_buffer_check()
6922 kpj->kpj_data.kpd_crypto_mem += need; in crypto_buffer_check()
6923 mutex_exit(&(kpj->kpj_data.kpd_crypto_lock)); in crypto_buffer_check()