Home
last modified time | relevance | path

Searched refs:P_MYID (Results 1 – 25 of 41) sorted by relevance

12

/illumos-gate/usr/src/test/os-tests/tests/secflags/
H A Dsecflags_syscall.c32 if ((err = psecflags(P_PID, P_MYID, PSF_INHERIT, NULL)) != 0) { in main()
41 if ((err = psecflags(P_PID, P_MYID, PSF_INHERIT, in main()
51 if ((err = psecflags(P_LWPID, P_MYID, PSF_INHERIT, &act)) != 0) { in main()
59 if ((err = psecflags(P_LWPID, P_MYID, PSF_EFFECTIVE, &act)) != 0) { in main()
/illumos-gate/usr/src/uts/common/syscall/
H A Dprocessor_bind.c237 if (id == P_MYID) { in processor_bind()
263 if (id == P_MYID) { in processor_bind()
275 if (id == P_MYID) { in processor_bind()
292 if (id == P_MYID) in processor_bind()
306 if (id == P_MYID) in processor_bind()
320 if (id == P_MYID) in processor_bind()
336 if (id == P_MYID || bind != PBIND_NONE || cpu_get(id) == NULL) in processor_bind()
343 if (id == P_MYID || bind != PBIND_NONE) { in processor_bind()
H A Dpset.c490 if ((pid == P_MYID && id == P_MYID) || in pset_bind_lwp()
491 (pid == curproc->p_pid && id == P_MYID)) { in pset_bind_lwp()
496 if (pid == P_MYID) { in pset_bind_lwp()
502 if (pp != curproc && id == P_MYID) { in pset_bind_lwp()
583 if (id == P_MYID) { in pset_bind()
600 if (id == P_MYID) { in pset_bind()
613 if (id == P_MYID) in pset_bind()
627 if (id == P_MYID) in pset_bind()
642 if (id == P_MYID) in pset_bind()
655 if (id == P_MYID) in pset_bind()
[all …]
H A Dsigqueue.c55 setprocset(&set, POP_AND, P_ALL, P_MYID, P_ALL, P_MYID); in sigqkill()
H A Dlgrpsys.c430 if (id != P_MYID) /* different thread */ in lgrp_affinity_get()
449 if (id == P_MYID) in lgrp_affinity_get()
770 if (id == P_MYID) { /* current thread */ in lgrp_affinity_set()
815 if (id == P_MYID) in lgrp_affinity_set()
859 if (id != P_MYID) in lgrp_affinity_set()
1012 if (id == P_MYID) { /* current thread */ in lgrp_home_get()
1039 if (id == P_MYID) in lgrp_home_get()
H A Ducredsys.c136 if (pid == P_MYID || pid == curproc->p_pid) { in ucred_get()
H A Dcorectl.c484 setprocset(&set, POP_AND, P_ALL, P_MYID, P_ALL, P_MYID); in set_proc_info()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsetpriority.c121 } else if (who != P_MYID) { in getpriority()
133 id = P_MYID; in getpriority()
163 } else if (who != P_MYID) { in setpriority()
170 id = P_MYID; in setpriority()
H A Dsigsend.c41 setprocset(&set, POP_AND, idtype, id, P_ALL, P_MYID); in sigsend()
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/
H A DLgrp.t259 $home = lgrp_home(P_PID, P_MYID);
261 my $home1 = $c->home(P_PID, P_MYID);
277 $affinity = $c->affinity_set(P_PID, P_MYID, $home, LGRP_AFF_WEAK);
283 $affinity = lgrp_affinity_set(P_PID, P_MYID, $home, LGRP_AFF_WEAK);
293 $affinity = lgrp_affinity_get(P_PID, P_MYID, $home);
299 $affinity = $c->affinity_get(P_PID, P_MYID, $home);
H A DLgrp_api.t143 $home = $c->home(P_PID, P_MYID);
148 $c->affinity_set(P_PID, P_MYID, $lgrp, LGRP_AFF_STRONG) or
151 $home = $c->home(P_PID, P_MYID);
154 $c->affinity_set(P_PID, P_MYID, $lgrp, LGRP_AFF_NONE) or
165 $c->affinity_set(P_PID, P_MYID, $root, $aff) or
/illumos-gate/usr/src/uts/common/os/
H A Dprocset.c107 if (psp->p_lid == P_MYID) { in dotoprocs()
110 if (psp->p_rid == P_MYID) { in dotoprocs()
759 (psp->p_lid == P_MYID || in cur_inset_only()
762 (psp->p_lid == P_MYID || in cur_inset_only()
768 (psp->p_rid == P_MYID || in cur_inset_only()
771 (psp->p_rid == P_MYID || in cur_inset_only()
857 if (id == P_MYID) in getlwpptr()
905 if (psp->p_lid == P_MYID) { in dotolwp()
908 if (psp->p_rid == P_MYID) { in dotolwp()
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dsched.c333 pid = P_MYID; in sched_setparam()
401 pid = P_MYID; in sched_getparam()
442 pid = P_MYID; in sched_setscheduler()
462 pid = P_MYID; in sched_getscheduler()
516 pid = P_MYID; in sched_rr_get_interval()
593 pccp = get_parms(P_LWPID, P_MYID, &pcparm); in update_sched()
622 if (priocntl(P_LWPID, P_MYID, PC_DOPRIO, &pcprio) == 0) in update_sched()
/illumos-gate/usr/src/cmd/priocntl/
H A Dtspriocntl.c360 if (ts_priocntl(idtype, P_MYID, PC_SETXPARMS, "TS", in set_tsprocs()
458 if (ts_priocntl(P_PID, P_MYID, PC_SETXPARMS, "TS", args) == -1) in exec_tscmd()
464 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, "TS", in exec_tscmd()
H A Dfsspriocntl.c344 if (fss_priocntl(idtype, P_MYID, PC_SETXPARMS, "FSS", in set_fssprocs()
442 if (fss_priocntl(P_PID, P_MYID, PC_SETXPARMS, "FSS", args) == -1) in exec_fsscmd()
448 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, "FSS", in exec_fsscmd()
H A Diapriocntl.c383 if (ia_priocntl(idtype, P_MYID, PC_SETXPARMS, "IA", in set_iaprocs()
490 if (ia_priocntl(P_PID, P_MYID, PC_SETXPARMS, "IA", args) == -1) in exec_iacmd()
496 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, "IA", in exec_iacmd()
H A Dfxpriocntl.c422 if (fx_priocntl(idtype, P_MYID, PC_SETXPARMS, "FX", in set_fxprocs()
531 if (fx_priocntl(P_PID, P_MYID, PC_SETXPARMS, "FX", args) == -1) in exec_fxcmd()
537 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, "FX", in exec_fxcmd()
H A Drtpriocntl.c417 if (rt_priocntl(idtype, P_MYID, PC_SETXPARMS, "RT", in set_rtprocs()
514 if (rt_priocntl(P_PID, P_MYID, PC_SETXPARMS, "RT", args) == -1) in exec_rtcmd()
H A Dsubr.c187 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, NULL,
255 if (priocntl(P_PID, P_MYID, PC_GETXPARMS, NULL,
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dthrpool.c161 if (priocntl(P_LWPID, P_MYID, PC_SETXPARMS, "FX", in svcsetprio()
/illumos-gate/usr/src/lib/libcpc/common/
H A Dlibcpc.c518 if (processor_bind(P_LWPID, P_MYID, id, &set->cs_obind) == -1) { in cpc_bind_cpu()
525 (void) processor_bind(P_LWPID, P_MYID, set->cs_obind, NULL); in cpc_bind_cpu()
541 (void) processor_bind(P_LWPID, P_MYID, set->cs_obind, NULL); in cpc_bind_cpu()
554 (void) processor_bind(P_LWPID, P_MYID, set->cs_obind, NULL); in cpc_bind_cpu()
609 (void) processor_bind(P_LWPID, P_MYID, set->cs_obind, NULL); in cpc_unbind()
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcpustat.c710 if (pset_bind(PS_QUERY, P_PID, P_MYID, &mypset) == -1) { in cpustat()
830 if (processor_bind(P_LWPID, P_MYID, state->cpuid, NULL) != 0) in soaker()
844 if (priocntl(P_LWPID, P_MYID, PC_SETPARMS, &pcparms) != 0) in soaker()
/illumos-gate/usr/src/lib/liblgrp/common/
H A Dlgrp.c120 if (id == P_MYID && (idtype == P_LWPID || idtype == P_PID)) in lgrp_home()
471 if (pset_bind(PS_QUERY, P_LWPID, P_MYID, &pset) == -1) in lgrp_init()
538 if (pset_bind(PS_QUERY, P_LWPID, P_MYID, &pset) == -1) in lgrp_cookie_stale()
/illumos-gate/usr/src/ucbhead/sys/
H A Dtypes.h430 #define P_MYID (-1) macro
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/pod/
H A DLgrp.pod46 $home = lgrp_home(P_PID, P_MYID);
47 $home = l->home(P_PID, P_MYID);
160 P_MYID
223 thread and the B<$id> argument should be its LWP id. The value C<P_MYID> can be
390 $id if idtype is C<P_LWPID>. If $id is C<P_MYID>, then the current LWP or
624 P_PID, P_LWPID P_MYID

12