| /netbsd/src/usr.sbin/schedctl/ |
| D | schedctl.c | 78 lwpid_t lid; in main() local 83 pid = lid = 0; in main() 102 lid = atoi(optarg); in main() 147 if (argv[optind] == NULL || lid != 0) in main() 156 sched_set(pid, lid, policy, set ? sp : NULL, cpuset); in main() 167 if (lid && lid != lwp->l_lid) in main() 184 sched_set(pid_t pid, lwpid_t lid, int policy, in sched_set() argument 191 error = _sched_setparam(pid, lid, policy, sp); in sched_set() 197 error = _sched_setaffinity(pid, lid, in sched_set() 205 thread_info(pid_t pid, lwpid_t lid) in thread_info() argument [all …]
|
| /netbsd/src/sys/kern/ |
| D | sys_sched.c | 108 do_sched_setparam(pid_t pid, lwpid_t lid, int policy, in do_sched_setparam() argument 160 if (lid && lid != t->l_lid) in do_sched_setparam() 216 error = do_sched_setparam(SCARG(uap, pid), SCARG(uap, lid), in sys__sched_setparam() 228 do_sched_getparam(pid_t pid, lwpid_t lid, int *policy, in do_sched_getparam() argument 235 if (pid < 0 || lid < 0) in do_sched_getparam() 238 t = lwp_find2(pid, lid); /* acquire p_lock */ in do_sched_getparam() 299 error = do_sched_getparam(SCARG(uap, pid), SCARG(uap, lid), &policy, in sys__sched_getparam() 349 lwpid_t lid; in sys__sched_setaffinity() local 438 lid = SCARG(uap, lid); in sys__sched_setaffinity() 440 if (lid && lid != t->l_lid) { in sys__sched_setaffinity() [all …]
|
| D | sys_process_lwpstatus.c | 85 ptrace_update_lwp(struct proc *t, struct lwp **lt, lwpid_t lid) in ptrace_update_lwp() argument 87 if (lid == 0 || lid == (*lt)->l_lid || t->p_nlwps == 1) in ptrace_update_lwp() 93 *lt = lwp_find(t, lid); in ptrace_update_lwp()
|
| D | sys_pset.c | 427 lwpid_t lid = 0; in sys__pset_bind() local 464 lid = 0; in sys__pset_bind() 474 lid = l->l_lid; in sys__pset_bind() 477 lid = id1; in sys__pset_bind() 502 if (lid && lid != t->l_lid) in sys__pset_bind()
|
| D | kern_lwp.c | 585 lwp_wait(struct lwp *l, lwpid_t lid, lwpid_t *departed, bool exiting) in lwp_wait() argument 595 l->l_waitingfor = lid; in lwp_wait() 635 if (lid != 0) { in lwp_wait() 636 l2 = proc_find_lwp(p, lid); in lwp_wait() 641 KASSERT(l2->l_lid == lid); in lwp_wait() 650 next = (lid != 0 ? NULL : LIST_NEXT(l2, l_sibling)); in lwp_wait() 661 if (l2->l_lid == lid && l2->l_waitingfor == curlid) { in lwp_wait() 671 if (lid != 0) { in lwp_wait() 755 if (lid != 0) { in lwp_wait() 756 l2 = proc_find_lwp(p, lid); in lwp_wait() [all …]
|
| D | subr_time.c | 184 lwpid_t lid = clock_id & CPUCLOCK_ID_MASK; in clock_gettime1() local 189 l = lid == 0 ? curlwp : lwp_find(p, lid); in clock_gettime1()
|
| /netbsd/src/sys/compat/linux/common/ |
| D | linux_sched.c | 259 lwpid_t lid; in linux_clone_nptl() local 281 lid = l2->l_lid; in linux_clone_nptl() 291 if ((error = copyout(&lid, parent_tidptr, sizeof(lid))) != 0) in linux_clone_nptl() 294 __func__, parent_tidptr, lid, error); in linux_clone_nptl() 299 if ((error = copyout(&lid, child_tidptr, sizeof(lid))) != 0) in linux_clone_nptl() 302 __func__, child_tidptr, lid, error); in linux_clone_nptl() 318 retval[0] = lid; in linux_clone_nptl() 751 lwpid_t lid; in linux_sys_sched_setaffinity() local 757 lid = SCARG(uap, pid); in linux_sys_sched_setaffinity() 758 if (lid != 0) { in linux_sys_sched_setaffinity() [all …]
|
| /netbsd/src/regress/sys/kern/latency2/ |
| D | latency2.c | 53 lwpid_t lid; variable 70 lid = _lwp_self(); in reader() 74 while (_lwp_park(NULL, 0, &lid, NULL) != 0) { in reader() 144 if (_lwp_unpark(lid, &lid) != 0) { in main()
|
| /netbsd/src/tests/lib/libc/sys/ |
| D | t_lwp_create.c | 82 lwpid_t lid; \ 89 error = _lwp_create(&uc, 0, &lid); \ 106 lwpid_t lid; in ATF_TC_BODY() local 114 error = _lwp_create(&uc, 0, &lid); in ATF_TC_BODY() 117 error = _lwp_wait(lid, NULL); in ATF_TC_BODY() 119 ATF_REQUIRE(lid == the_lwp_id); in ATF_TC_BODY()
|
| D | t_ptrace_threads_wait.h | 67 lwpid_t lid; in trace_threads() local 167 lid = state.pe_lwp; in trace_threads() 168 DPRINTF("Reported PTRACE_LWP_CREATE event with lid %d\n", lid); in trace_threads() 170 *FIND_EVENT_COUNT(traced_lwps, lid) += 1; in trace_threads() 205 lid = state.pe_lwp; in trace_threads() 206 DPRINTF("Reported PTRACE_LWP_EXIT event with lid %d\n", lid); in trace_threads() 209 int *count = FIND_EVENT_COUNT(traced_lwps, lid); in trace_threads() 283 lwpid_t lid; in threads_and_exec() local 357 lid = state.pe_lwp; in threads_and_exec() 358 DPRINTF("Reported PTRACE_LWP_CREATE event with lid %d\n", lid); in threads_and_exec() [all …]
|
| /netbsd/src/sys/arch/ia64/ia64/ |
| D | cpu.c | 80 uint64_t lid; in cpu_attach() local 89 lid = ia64_get_lid(); in cpu_attach() 90 id = (lid & 0x00000000ff000000) >> 24; in cpu_attach() 91 eid = (lid & 0x0000000000ff0000) >> 16; in cpu_attach()
|
| D | sapic.c | 180 uint64_t lid = ia64_get_lid(); in sapic_enable() local 184 rte.rte_destination_id = (lid >> 24) & 255; in sapic_enable() 185 rte.rte_destination_eid = (lid >> 16) & 255; in sapic_enable()
|
| /netbsd/src/lib/libpuffs/ |
| D | callcontext.c | 168 puffs_cc_getcaller(struct puffs_cc *pcc, pid_t *pid, lwpid_t *lid) in puffs_cc_getcaller() argument 178 if (lid) in puffs_cc_getcaller() 179 *lid = pcc->pcc_lid; in puffs_cc_getcaller() 284 puffs__cc_setcaller(struct puffs_cc *pcc, pid_t pid, lwpid_t lid) in puffs__cc_setcaller() argument 288 pcc->pcc_lid = lid; in puffs__cc_setcaller()
|
| /netbsd/src/sys/ufs/chfs/ |
| D | ebh.c | 53 int nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid); 89 ebhdr->u.nor_hdr.lid = htole32(lnr); in nor_create_eb_hdr() 101 ebhdr->u.nand_hdr.lid = htole32(lnr); in nand_create_eb_hdr() 226 ebhdr->u.nor_hdr.lid = ebhdr->u.nor_hdr.lid in nor_write_eb_hdr() 332 if (ebhdr->u.nor_hdr.crc == 0 && ebhdr->u.nor_hdr.lid == 0) { in nor_check_eb_hdr() 339 lid_save = ebhdr->u.nor_hdr.lid; in nor_check_eb_hdr() 342 ebhdr->u.nor_hdr.lid = ebhdr->u.nor_hdr.lid | htole32( in nor_check_eb_hdr() 347 ebhdr->u.nor_hdr.lid = lid_save; in nor_check_eb_hdr() 435 nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid) in nor_mark_eb_hdr_dirty_flash() argument 442 lid = htole32(lid & CHFS_LID_DIRTY_BIT_MASK); in nor_mark_eb_hdr_dirty_flash() [all …]
|
| D | ebh_media.h | 97 le32 lid; member 112 le32 lid; member
|
| D | ebh_misc.h | 41 #define CHFS_GET_LID(lid) (le32toh(lid) & CHFS_LID_DIRTY_BIT_MASK) argument
|
| /netbsd/src/lib/libpthread/ |
| D | pthread_mutex.c | 100 lwpid_t volatile lid; member 336 waiter.lid = self->pt_lid; in pthread__mutex_lock_slow() 365 while (waiter.lid != 0) { in pthread__mutex_lock_slow() 379 while (waiter.lid != 0) { in pthread__mutex_lock_slow() 536 pthread__assert(cur->lid != 0); in pthread__mutex_wakeup() 537 lids[nlid++] = cur->lid; in pthread__mutex_wakeup() 539 cur->lid = 0; in pthread__mutex_wakeup()
|
| D | pthread_cond.c | 161 waiter.lid = self->pt_lid; in pthread_cond_timedwait() 175 while (waiter.lid && in pthread_cond_timedwait() 206 while (__predict_false(waiter.lid)) { in pthread_cond_timedwait() 212 pthread__assert(!waiter.lid); in pthread_cond_timedwait()
|
| /netbsd/src/sys/arch/evbarm/netwalker/ |
| D | netwalker_lid.c | 167 int lid; in netwalker_lid_refresh() local 170 lid = gpio_pin_read(sc->sc_gpio, &sc->sc_map, LID_PIN_INPUT); in netwalker_lid_refresh() 171 event = (lid == GPIO_PIN_HIGH) ? in netwalker_lid_refresh()
|
| /netbsd/src/external/cddl/osnet/dist/uts/common/sys/ |
| D | procset.h | 147 #define setprocset(psp, op, ltype, lid, rtype, rid) \ argument 150 (psp)->p_lid = (lid); \
|
| /netbsd/src/usr.bin/ktruss/ |
| D | dump.c | 206 #define KTE_MATCH(kte, type, pid, lid) \ argument 208 KTE_LID(kte) == (lid)) 221 int pid = KTE_PID(us), lid = KTE_LID(us); in flushpendq() local 225 if (KTE_PID(kte) == pid || KTE_LID(kte) == lid) { in flushpendq() 236 int pid = us->ktr_pid, lid = us->ktr_lid; in getpendq() local 242 if (KTE_MATCH(kte, type, pid, lid)) { in getpendq()
|
| /netbsd/src/sys/arch/ia64/include/ |
| D | smp.h | 36 void ipi_send(u_int64_t lid, int ipi);
|
| /netbsd/src/etc/etc.macppc/ |
| D | rc.conf.append | 6 # generate events for powerd. Also, on most laptops we support AC and lid
|
| /netbsd/src/sys/opencrypto/ |
| D | cryptosoft.c | 1145 u_int32_t lid; in swcr_process() local 1157 lid = crp->crp_sid & 0xffffffff; in swcr_process() 1158 if (lid >= swcr_sesnum || lid == 0 || swcr_sessions[lid] == NULL) { in swcr_process() 1183 for (sw = swcr_sessions[lid]; in swcr_process()
|
| /netbsd/src/sys/fs/unionfs/ |
| D | unionfs_subr.c | 186 lwpid_t lid; in unionfs_get_node_status() local 192 lid = curlwp->l_lid; in unionfs_get_node_status() 195 if (unsp->uns_pid == pid && unsp->uns_lid == lid) { in unionfs_get_node_status() 204 unsp->uns_lid = lid; in unionfs_get_node_status()
|