Lines Matching refs:obj
81 extern void iokit_add_reference( io_object_t obj );
83 extern ipc_port_t iokit_port_for_object( io_object_t obj,
86 extern kern_return_t iokit_client_died( io_object_t obj,
104 extern ipc_port_t iokit_alloc_object_port( io_object_t obj,
110 io_object_t obj, ipc_kobject_type_t type );
121 extern kern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type );
145 register io_object_t obj;
152 obj = (io_object_t) port->ip_kobject;
153 iokit_add_reference( obj );
156 obj = NULL;
160 return( obj );
167 register io_object_t obj;
174 obj = (io_object_t) port->ip_kobject;
175 iokit_add_reference( obj );
178 obj = NULL;
182 return( obj );
188 io_object_t obj = NULL;
200 obj = (io_object_t) port->ip_kobject;
201 iokit_add_reference(obj);
208 return obj;
235 io_object_t obj )
240 if( obj == NULL)
243 port = iokit_port_for_object( obj, IKOT_IOKIT_OBJECT );
250 iokit_remove_reference( obj );
257 io_object_t obj )
262 if( obj == NULL)
265 port = iokit_port_for_object( obj, IKOT_IOKIT_CONNECT );
272 iokit_remove_reference( obj );
280 iokit_alloc_object_port( io_object_t obj, ipc_kobject_type_t type )
293 // iokit_add_reference( obj );
294 ipc_kobject_set( port, (ipc_kobject_t) obj, type);
314 // iokit_remove_reference( obj );
323 iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type )
325 ipc_kobject_set( port, (ipc_kobject_t) obj, type);
331 iokit_make_send_right( task_t task, io_object_t obj, ipc_kobject_type_t type )
337 if( obj == NULL)
340 port = iokit_port_for_object( obj, type );
358 iokit_remove_reference( obj );
379 io_object_t obj = NULL;
389 obj = (io_object_t) port->ip_kobject;
393 iokit_add_reference( obj );
395 obj = NULL;
399 if( obj ) {
403 if( KERN_SUCCESS != iokit_client_died( obj, port, type, &mscount ))
411 iokit_remove_reference( obj );