Lines Matching defs:kbuf
161 char * kbuf;
181 kbuf = (char *)kalloc((vm_size_t)(numprocs * sizeof(int)));
182 if (kbuf == NULL)
184 bzero(kbuf, sizeof(int));
190 ptr = (int *)kbuf;
267 ptr = (int *)kbuf;
271 kfree((void *)kbuf, (vm_size_t)(numprocs * sizeof(int)));
283 char * kbuf;
304 kbuf = (char *)kalloc((vm_size_t)(numfds * sizeof(struct proc_fdinfo)));
305 if (kbuf == NULL)
307 bzero(kbuf, numfds * sizeof(struct proc_fdinfo));
311 pfd = (struct proc_fdinfo *)kbuf;
324 error = copyout(kbuf, buffer, count * sizeof(struct proc_fdinfo));
325 kfree((void *)kbuf, (vm_size_t)(numfds * sizeof(struct proc_fdinfo)));
486 void * kbuf;
498 kbuf = (void *)kalloc(numthreads * sizeof(uint64_t));
499 if (kbuf == NULL)
501 bzero(kbuf, numthreads * sizeof(uint64_t));
503 ret = fill_taskthreadlist(p->task, kbuf, numthreads);
505 error = copyout(kbuf, buffer, ret);
506 kfree(kbuf, numthreads * sizeof(uint64_t));