Lines Matching refs:obj
70 extern ipc_port_t iokit_alloc_object_port( io_object_t obj,
76 io_object_t obj, ipc_kobject_type_t type );
89 extern kern_return_t iokit_switch_object_port( ipc_port_t port, io_object_t obj, ipc_kobject_type_t type );
110 static IOMachPort * portForObject( OSObject * obj,
112 static bool noMoreSendersForObject( OSObject * obj,
114 static void releasePortForObject( OSObject * obj,
116 static void setHoldDestroy( OSObject * obj, ipc_kobject_type_t type );
121 io_object_t obj, ipc_kobject_type_t type );
154 IOMachPort * IOMachPort::portForObject ( OSObject * obj,
169 dict->getObject( (const OSSymbol *) obj ))) {
181 inst->port = iokit_alloc_object_port( obj, type );
183 // retains obj
184 dict->setObject( (const OSSymbol *) obj, inst );
199 bool IOMachPort::noMoreSendersForObject( OSObject * obj,
209 obj->retain();
211 machPort = (IOMachPort *) dict->getObject( (const OSSymbol *) obj );
215 dict->removeObject( (const OSSymbol *) obj );
219 obj->release();
227 void IOMachPort::releasePortForObject( OSObject * obj,
236 obj->retain();
237 machPort = (IOMachPort *) dict->getObject( (const OSSymbol *) obj );
239 dict->removeObject( (const OSSymbol *) obj );
240 obj->release();
246 void IOMachPort::setHoldDestroy( OSObject * obj, ipc_kobject_type_t type )
254 machPort = (IOMachPort *) dict->getObject( (const OSSymbol *) obj );
262 void IOUserClient::destroyUserReferences( OSObject * obj )
264 IOMachPort::releasePortForObject( obj, IKOT_IOKIT_OBJECT );
267 // IOMachPort::releasePortForObject( obj, IKOT_IOKIT_CONNECT );
272 obj->retain();
277 port = (IOMachPort *) dict->getObject( (const OSSymbol *) obj );
281 if ((uc = OSDynamicCast(IOUserClient, obj)) && uc->mappings)
289 dict->removeObject( (const OSSymbol *) obj );
292 obj->release();
297 io_object_t obj, ipc_kobject_type_t type )
299 return( iokit_make_send_right( task, obj, type ));
323 virtual void setNotification( IONotifier * obj );
336 iokit_add_reference( io_object_t obj )
338 if( obj)
339 obj->retain();
343 iokit_remove_reference( io_object_t obj )
345 if( obj)
346 obj->release();
350 iokit_port_for_object( io_object_t obj, ipc_kobject_type_t type )
355 if( (machPort = IOMachPort::portForObject( obj, type ))) {
370 iokit_client_died( io_object_t obj, ipc_port_t /* port */,
377 if( !IOMachPort::noMoreSendersForObject( obj, type, mscount ))
382 if( (client = OSDynamicCast( IOUserClient, obj )))
387 if( (map = OSDynamicCast( IOMemoryMap, obj )))
389 else if( (notify = OSDynamicCast( IOUserNotification, obj )))
1036 OSObject *obj, io_object_t *clientObj)
1040 name = IOMachPort::makeSendRightForTask( task, obj, IKOT_IOKIT_OBJECT );
1204 #define CHECK(cls,obj,out) \
1206 if( !(out = OSDynamicCast( cls, obj))) \
1338 OSObject * obj;
1342 obj = iter->getNextObject();
1343 if( obj) {
1344 obj->retain();
1345 *object = obj;
1383 OSObject * obj;
1386 obj = OSUnserializeXML( matching );
1388 if( (dict = OSDynamicCast( OSDictionary, obj))) {
1394 if( obj)
1395 obj->release();
1432 OSObject * obj;
1438 obj = OSUnserializeXML( matching );
1440 if( (dict = OSDynamicCast( OSDictionary, obj))) {
1446 if( obj)
1447 obj->release();
1962 OSObject * obj;
1974 obj = entry->copyProperty(property_name);
1975 if( !obj)
1980 if( (data = OSDynamicCast( OSData, obj ))) {
1984 } else if( (str = OSDynamicCast( OSString, obj ))) {
1988 } else if( (boo = OSDynamicCast( OSBoolean, obj ))) {
1992 } else if( (off = OSDynamicCast( OSNumber, obj ))) {
2012 obj->release();
2027 OSObject * obj;
2031 obj = entry->copyProperty(property_name);
2032 if( !obj)
2037 obj->release();
2042 if( obj->serialize( s )) {
2051 obj->release();
2067 OSObject * obj;
2071 obj = entry->copyProperty( property_name,
2073 if( !obj)
2078 obj->release();
2084 if( obj->serialize( s )) {
2093 obj->release();
2136 OSObject * obj;
2150 obj = OSUnserializeXML( (const char *) data );
2153 if( obj) {
2154 res = entry->setProperties( obj );
2155 obj->release();
2285 OSObject * obj;
2295 obj = OSUnserializeXML( (const char *) data );
2297 propertiesDict = OSDynamicCast(OSDictionary, obj);
2301 if (obj)
2302 obj->release();
3659 OSObject * obj = 0;
3684 obj = (OSObject *)OSUnserializeXML((const char *)data);
3686 if( !obj) {
3698 array = OSDynamicCast(OSArray, obj);
3715 dict = OSDynamicCast(OSDictionary, obj);
3731 dict = OSDynamicCast(OSDictionary, obj);
3772 if (obj) obj->release();