Lines Matching refs:fileport
55 ipc_port_t fileport;
59 fileport = ipc_port_alloc_kernel();
60 if (fileport == IP_NULL) {
64 ipc_kobject_set(fileport, (ipc_kobject_t)fg, IKOT_FILEPORT);
65 ip_lock(fileport); /* unlocked by ipc_port_nsrequest */
66 notifyport = ipc_port_make_sonce_locked(fileport);
67 ipc_port_nsrequest(fileport, 1, notifyport, ¬ifyport);
69 sendport = ipc_port_make_send(fileport);
71 panic("Couldn't allocate send right for fileport!\n");
75 return fileport;
91 * Notes: The caller must have a reference on the fileport.
113 * Description: Handle a no-senders notification for a fileport. Unless
138 panic("fileport without an assocated fileglob\n");
153 * Description: Invoke a function with the fileglob underlying the fileport.
167 ipc_port_t fileport;
171 MACH_MSG_TYPE_COPY_SEND, (ipc_object_t *)&fileport);
175 if ((fg = fileport_port_to_fileglob(fileport)) != NULL)
179 ipc_port_release_send(fileport);
186 * Description: Invoke the action function on every fileport in the task.
195 * action The function to invoke on each fileport