Lines Matching defs:new_kport
372 ipc_port_t old_kport, new_kport;
377 new_kport = ipc_port_alloc_kernel();
378 if (new_kport == IP_NULL)
388 ipc_port_dealloc_kernel(new_kport);
392 task->itk_self = new_kport;
394 task->itk_sself = ipc_port_make_send(new_kport);
396 ipc_kobject_set(new_kport, (ipc_kobject_t) task, IKOT_TASK);
554 ipc_port_t old_kport, new_kport;
560 new_kport = ipc_port_alloc_kernel();
561 if (new_kport == IP_NULL)
571 ipc_port_dealloc_kernel(new_kport);
575 thread->ith_self = new_kport;
577 thread->ith_sself = ipc_port_make_send(new_kport);
579 ipc_kobject_set(new_kport, (ipc_kobject_t) thread, IKOT_THREAD);