Lines Matching defs:kport
122 ipc_port_t kport;
134 kport = ipc_port_alloc_kernel();
135 if (kport == IP_NULL)
143 task->itk_self = kport;
145 task->itk_sself = ipc_port_make_send(kport);
151 &task->maclabel, &kport->ip_label);
153 mac_task_label_associate_kernel(task, &task->maclabel, &kport->ip_label);
227 ipc_port_t kport;
231 kport = task->itk_self;
232 if (kport != IP_NULL)
233 ipc_kobject_set(kport, (ipc_kobject_t) task, IKOT_TASK);
252 ipc_port_t kport;
256 kport = task->itk_self;
257 if (kport != IP_NULL)
258 ipc_kobject_set(kport, IKO_NULL, IKOT_NONE);
278 ipc_port_t kport;
283 kport = task->itk_self;
285 if (kport == IP_NULL) {
329 ipc_port_dealloc_kernel(kport);
415 ipc_port_t kport;
418 kport = ipc_port_alloc_kernel();
419 if (kport == IP_NULL)
422 thread->ith_self = kport;
423 thread->ith_sself = ipc_port_make_send(kport);
428 ipc_kobject_set(kport, (ipc_kobject_t)thread, IKOT_THREAD);
439 ipc_port_t kport = thread->ith_self;
441 if (kport != IP_NULL)
442 ipc_kobject_set(kport, IKO_NULL, IKOT_NONE);
457 ipc_port_t kport = thread->ith_self;
459 if (kport != IP_NULL) {
472 ipc_port_dealloc_kernel(kport);
1314 ipc_port_t kport;
1319 (ipc_object_t *)&kport) != KERN_SUCCESS)
1322 thread = convert_port_to_thread(kport);
1324 if (IP_VALID(kport))
1325 ipc_port_release_send(kport);