Lines Matching refs:cookie
49 kvm_t *cookie; variable
131 if (cookie == NULL) in main()
141 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pid, in main()
173 if ((cookie = kvm_open(namelist, corefile, in tst_open()
175 printf("ERROR: kvm_open returned %p\n", cookie); in tst_open()
184 if ((i = kvm_close(cookie)) != 0) in tst_close()
195 if ((i = kvm_nlist(cookie, nl)) != 0) in tst_nlist()
264 if ((e = kvm_read(cookie, addr, buf, nbytes)) != nbytes) in tst_read()
282 if ((e = kvm_write(cookie, addr, buf, nbytes)) != nbytes) in tst_write()
288 if ((i = kvm_read(cookie, addr, b, nbytes)) != nbytes) in tst_write()
304 if ((proc = kvm_getproc(cookie, pid)) == NULL) { in tst_getproc()
309 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pidbuf, in tst_getproc()
326 if ((proc = kvm_nextproc(cookie)) == NULL) { in tst_nextproc()
335 if (kvm_read(cookie, (u_long)proc->p_pidp, (char *)&pidbuf, in tst_nextproc()
350 if ((i = kvm_setproc(cookie)) != 0) in tst_setproc()
363 if (kvm_read(cookie, (uintptr_t)proc->p_pidp, &pidbuf, in tst_getu()
368 if ((u = kvm_getu(cookie, proc)) == NULL) in tst_getu()
398 if (kvm_kread(cookie, (uintptr_t)proc->p_pidp, &pidbuf, in tst_getcmd()
405 if ((i = kvm_getcmd(cookie, proc, u, &arg, &env)) != 0) { in tst_getcmd()
431 if (kvm_read(cookie, nl[3].n_value, &alltp, sizeof (alltp)) in tst_segkp()
442 if (kvm_read(cookie, in tst_segkp()
452 if (kvm_read(cookie, t.t_pcb.val[1] + STACK_BIAS, stk, in tst_segkp()