Lines Matching defs:cookie
51 kvm_t *cookie;
133 if (cookie == NULL)
143 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pid,
175 if ((cookie = kvm_open(namelist, corefile,
177 printf("ERROR: kvm_open returned %p\n", cookie);
186 if ((i = kvm_close(cookie)) != 0)
197 if ((i = kvm_nlist(cookie, nl)) != 0)
266 if ((e = kvm_read(cookie, addr, buf, nbytes)) != nbytes)
284 if ((e = kvm_write(cookie, addr, buf, nbytes)) != nbytes)
290 if ((i = kvm_read(cookie, addr, b, nbytes)) != nbytes)
306 if ((proc = kvm_getproc(cookie, pid)) == NULL) {
311 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pidbuf,
328 if ((proc = kvm_nextproc(cookie)) == NULL) {
337 if (kvm_read(cookie, (u_long)proc->p_pidp, (char *)&pidbuf,
352 if ((i = kvm_setproc(cookie)) != 0)
365 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pidbuf,
370 if ((u = kvm_getu(cookie, proc)) == NULL)
400 if (kvm_kread(cookie, (uintptr_t)proc->p_pidp, &pidbuf,
407 if ((i = kvm_getcmd(cookie, proc, u, &arg, &env)) != 0) {
433 if (kvm_read(cookie, nl[3].n_value, &alltp, sizeof (alltp))
444 if (kvm_read(cookie,
454 if (kvm_read(cookie, t.t_pcb.val[1] + STACK_BIAS, stk,