• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/

Lines Matching refs:port

63  *	Functions to manipulate IPC port sets.
66 #include <mach/port.h>
82 * Allocate a port set.
84 * Nothing locked. If successful, the port set is returned
87 * KERN_SUCCESS The port set is allocated.
121 * Allocate a port set, with a specific name.
123 * Nothing locked. If successful, the port set is returned
126 * KERN_SUCCESS The port set is allocated.
159 * Checks to see if a port is a member of a pset
161 * Both port and port set are locked.
162 * The port must be active.
167 ipc_port_t port)
169 assert(ip_active(port));
171 return (ipc_mqueue_member(&port->ip_messages, &pset->ips_messages));
178 * Puts a port into a port set.
180 * Both port and port set are locked and active.
181 * The owner of the port set is also receiver for the port.
187 ipc_port_t port)
192 assert(ip_active(port));
194 kr = ipc_mqueue_add(&port->ip_messages, &pset->ips_messages);
197 port->ip_pset_count++;
207 * Removes a port from a port set.
208 * The port set loses a reference.
210 * Both port and port set are locked.
211 * The port must be active.
217 ipc_port_t port)
221 assert(ip_active(port));
223 if (port->ip_pset_count == 0)
226 kr = ipc_mqueue_remove(&port->ip_messages, &pset->ips_messages);
229 port->ip_pset_count--;
237 * Removes a port from all it's port sets.
239 * port is locked and active.
244 ipc_port_t port)
246 assert(ip_active(port));
248 if (port->ip_pset_count == 0)
252 * Remove the port's mqueue from all sets
254 ipc_mqueue_remove_from_all(&port->ip_messages);
255 port->ip_pset_count = 0;
326 * Pretty-print a port set for kdb.