Lines Matching defs:new_kport
351 ipc_port_t old_kport, new_kport;
356 new_kport = ipc_port_alloc_kernel();
357 if (new_kport == IP_NULL)
367 ipc_port_dealloc_kernel(new_kport);
371 task->itk_self = new_kport;
373 task->itk_sself = ipc_port_make_send(new_kport);
375 ipc_kobject_set(new_kport, (ipc_kobject_t) task, IKOT_TASK);
499 ipc_port_t old_kport, new_kport;
504 new_kport = ipc_port_alloc_kernel();
505 if (new_kport == IP_NULL)
515 ipc_port_dealloc_kernel(new_kport);
519 thread->ith_self = new_kport;
521 thread->ith_sself = ipc_port_make_send(new_kport);
523 ipc_kobject_set(new_kport, (ipc_kobject_t) thread, IKOT_THREAD);