Home
last modified time | relevance | path

Searched refs:OSObject (Results 1 – 25 of 173) sorted by relevance

1234567

/xnu-11215/libkern/c++/
H A DOSObject.cpp51 OSObject::MetaClass OSObject::gMetaClass;
52 const OSMetaClass * const OSObject::metaClass = &OSObject::gMetaClass;
56 OSObject::~OSObject() in ~OSObject()
64 OSObject *
72 : OSMetaClass("OSObject", OSObject::superClass, sizeof(OSObject)) in MetaClass()
240 OSObject::retain() const in retain()
388 OSObject::init() in init()
399 OSObject::free() in free()
427 OSObject::OSObject() in OSObject() function in OSObject
433 OSObject::OSObject(const OSMetaClass *) in OSObject() function in OSObject
[all …]
H A DOSUnserialize.y98 static OSObject *parsedObject;
514 static OSObject *
523 OSObject *
560 OSObject *
586 OSObject *
596 OSObject *
606 OSObject *
621 OSObject *
629 OSObject *
643 OSObject*
[all …]
H A DOSCollection.cpp39 #define super OSObject
41 OSDefineMetaClassAndAbstractStructors(OSCollection, OSObject)
94 OSObject *obj = cycleDict->getObject((const OSSymbol *) this); in copyCollection()
107 OSCollection::iterateObjects(void * refcon, bool (*callback)(void * refcon, OSObject * object)) in iterateObjects()
122 OSObject * object; in iterateObjects()
133 OSCollectionIterateObjectsBlock(void * refcon, OSObject * object) in OSCollectionIterateObjectsBlock()
135 bool (^block)(OSObject * object) = (typeof(block))refcon; in OSCollectionIterateObjectsBlock()
140 OSCollection::iterateObjects(bool (^block)(OSObject * object))
H A DOSOrderedSet.cpp55 reinterpret_cast<OSObject *>(const_cast<OSMetaClassBase *>(obj))
265 (ordering ? ((*ordering)( (const OSObject *) obj1, (const OSObject *) obj2, orderingRef)) : 0)
334 OSObject *
341 return const_cast<OSObject *>((const OSObject *) array[index].obj.get()); in getObject()
344 OSObject *
348 return const_cast<OSObject *>((const OSObject *) array[0].obj.get()); in getFirstObject()
354 OSObject *
358 return const_cast<OSObject *>((const OSObject *) array[count - 1].obj.get()); in getLastObject()
428 getNextObjectForIterator(void *inIterator, OSObject **ret) const in getNextObjectForIterator()
434 *ret = const_cast<OSObject *>((const OSObject *) array[index].obj.get()); in getNextObjectForIterator()
[all …]
H A DOSSerializeBinary.cpp346 OSObject *
349 OSObject ** objsArray; in OSUnserializeBinary()
354 OSObject ** stackArray; in OSUnserializeBinary()
359 OSObject * result; in OSUnserializeBinary()
360 OSObject * parent; in OSUnserializeBinary()
367 OSObject * o; in OSUnserializeBinary()
630 kfree_type(OSObject *, objsCapacity, objsArray); in OSUnserializeBinary()
639 OSObject*
650 OSObject*
662 OSObject*
[all …]
H A DOSDictionary.cpp57 reinterpret_cast<OSObject *>(const_cast<OSMetaClassBase *>(obj))
111 OSDictionary::initWithObjects(const OSObject *objects[], in initWithObjects()
146 OSDictionary::initWithObjects(const OSObject *objects[], in initWithObjects()
235 OSDictionary::withObjects(const OSObject *objects[], in withObjects()
250 OSDictionary::withObjects(const OSObject *objects[], in withObjects()
502 OSObject *
522 return const_cast<OSObject *> ((const OSObject *)dictionary[i].value.get()); in getObject()
534 return const_cast<OSObject *> ((const OSObject *)dictionary[i].value.get()); in getObject()
546 OSObject *retObj = NULL; \
577 OSObject *OSDictionary::getObject(const OSString * aKey) const in setObject()
[all …]
H A DOSUnserialize.cpp183 static OSObject *parsedObject;
2164 static OSObject *
2173 OSObject *
2210 OSObject *
2236 OSObject *
2246 OSObject *
2256 OSObject *
2271 OSObject *
2279 OSObject *
2293 OSObject*
[all …]
H A DOSArray.cpp81 OSArray::initWithObjects(const OSObject *objects[], in initWithObjects()
120 return initWithObjects((const OSObject **) anArray->array, in initWithArray()
137 OSArray::withObjects(const OSObject *objects[], in withObjects()
393 OSObject *
399 return static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[index].get())); in getObject()
403 OSObject *
409 return static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[count - 1].get())); in getLastObject()
442 OSArray::getNextObjectForIterator(void *inIterator, OSObject **ret) const in getNextObjectForIterator()
448 *ret = static_cast<OSObject *>(const_cast<OSMetaClassBase *>(array[index].get())); in getNextObjectForIterator()
525 OSDynamicCast(OSCollection, static_cast<OSObject *>( in copyCollection()
H A DOSBoolean.cpp35 #define super OSObject
37 OSDefineMetaClassAndStructorsWithInit(OSBoolean, OSObject, OSBoolean::initialize())
60 gOSBooleanTrue->OSObject::free(); in initialize()
70 gOSBooleanFalse->OSObject::free(); in initialize()
/xnu-11215/libkern/libkern/c++/
H A DOSObject.h48 class OSObject; variable
50 typedef OSObject* OSObjectPtr;
174 class OSObject : public OSMetaClassBase
457 OSMetaClassDeclareReservedUnused(OSObject, 0);
458 OSMetaClassDeclareReservedUnused(OSObject, 1);
459 OSMetaClassDeclareReservedUnused(OSObject, 2);
460 OSMetaClassDeclareReservedUnused(OSObject, 3);
461 OSMetaClassDeclareReservedUnused(OSObject, 4);
462 OSMetaClassDeclareReservedUnused(OSObject, 5);
463 OSMetaClassDeclareReservedUnused(OSObject, 6);
[all …]
H A DOSUnserialize.h40 class OSObject; variable
71 extern "C++" OSPtr<OSObject> OSUnserializeXML(
75 extern "C++" OSPtr<OSObject> OSUnserializeXML(
101 extern "C++" OSPtr<OSObject> OSUnserializeXML(
106 extern "C++" OSPtr<OSObject> OSUnserializeXML(
111 extern "C++" OSPtr<OSObject>
114 extern "C++" OSPtr<OSObject>
118 extern OSPtr<OSObject> OSUnserialize(const char *buffer, OSString * *errorString = NULL);
120 extern OSPtr<OSObject> OSUnserialize(const char *buffer, OSSharedPtr<OSString>& errorString);
H A DOSDictionary.h165 virtual bool getNextObjectForIterator(void * iterator, OSObject ** ret) const APPLE_KEXT_OVERRIDE;
224 const OSObject * objects[],
262 const OSObject * objects[],
368 const OSObject * objects[],
409 const OSObject * objects[],
757 virtual OSObject * getObject(const OSSymbol * aKey) const;
780 virtual OSObject * getObject(const OSString * aKey) const;
804 virtual OSObject * getObject(const char * aKey) const;
971 …bool iterateObjects(void * refcon, bool (*callback)(void * refcon, const OSSymbol * key, OSObject
991 bool iterateObjects(bool (^block)(const OSSymbol * key, OSObject * object));
H A DOSMetaClass.h135 class OSObject; variable
1528 static OSObject * allocClassWithName(const OSSymbol * name);
1553 static OSObject * allocClassWithName(const OSString * name);
1578 static OSObject * allocClassWithName(const char * name);
1795 virtual OSObject * alloc() const = 0;
2072 OSObject * className ::MetaClass::alloc() const \
2092 return OSObject::operator new(size); \
2095 return OSObject::operator delete(mem, size); \
2106 return OSObject::operator new(size); \
2605 void trackedInstance(OSObject * instance) const;
[all …]
H A DOSCollection.h94 class OSCollection : public OSObject
213 OSObject ** nextObject) const = 0;
480 bool iterateObjects(void * refcon, bool (*callback)(void * refcon, OSObject * object));
500 bool iterateObjects(bool (^block)(OSObject * object));
H A DOSArray.h129 virtual bool getNextObjectForIterator(void * iterator, OSObject ** ret) const APPLE_KEXT_OVERRIDE;
180 const OSObject * objects[],
278 const OSObject * objects[],
631 virtual OSObject * getObject(unsigned int index) const;
652 virtual OSObject * getLastObject() const;
/xnu-11215/iokit/IOKit/
H A DIORegistryEntry.h83 class IORegistryEntry : public OSObject
180 typedef IOReturn (*Action)(OSObject *target,
305 OSObject * anObject);
308 OSObject * setIndexedProperty(uint32_t index, OSObject * anObject);
309 OSObject * getIndexedProperty(uint32_t index) const;
449 const OSObject * value);
459 const OSObject * value);
469 const OSObject * value);
565 const OSObject * value,
581 const OSObject * value,
[all …]
H A DIONVRAM.h108 …bool handleSpecialVariables(const char *name, const uuid_t guid, const OSObject *obj, IOReturn *er…
110 IOReturn setPropertyInternal(const OSSymbol *aKey, OSObject *anObject);
112 OSSharedPtr<OSObject> copyPropertyWithGUIDAndName(const uuid_t guid, const char *name) const;
114 IOReturn setPropertyWithGUIDAndName(const uuid_t guid, const char *name, OSObject *anObject);
130 virtual OSPtr<OSObject> copyProperty(const OSSymbol *aKey) const APPLE_KEXT_OVERRIDE;
131 virtual OSPtr<OSObject> copyProperty(const char *aKey) const APPLE_KEXT_OVERRIDE;
132 virtual OSObject *getProperty(const OSSymbol *aKey) const APPLE_KEXT_OVERRIDE;
133 virtual OSObject *getProperty(const char *aKey) const APPLE_KEXT_OVERRIDE;
134 virtual bool setProperty(const OSSymbol *aKey, OSObject *anObject) APPLE_KEXT_OVERRIDE;
136 virtual IOReturn setProperties(OSObject *properties) APPLE_KEXT_OVERRIDE;
H A DIOUserServer.h110 class OSObject; variable
198 virtual IOReturn setProperties(OSObject * properties) APPLE_KEXT_OVERRIDE;
225 bool checkEntitlements(LIBKERN_CONSUMED OSObject * prop,
227 …static bool checkEntitlements(OSDictionary * entitlements, LIBKERN_CONSUMED OSObject * …
249 OSObjectUserVars * varsForObject(OSObject * obj);
250 LIBKERN_RETURNS_NOT_RETAINED IODispatchQueue * queueForObject(OSObject * obj, uint64_t msgid);
262 IOReturn objectInstantiate(OSObject * obj, IORPC rpc, IORPCMessage * message);
263 IOReturn kernelDispatch(OSObject * obj, IORPC rpc);
264 static OSObject * target(OSAction * action, IORPCMessage * message);
278 class _IOUserServerCheckInCancellationHandler : public OSObject {
[all …]
H A DIOUserClient.h150 OSObject ** structureVariableOutputData;
275 OSObject *target = NULL, void *reference = NULL);
303 static void destroyUserReferences( OSObject * obj );
304 static bool finalizeUserReferences( OSObject * obj );
448 LIBKERN_CONSUMED OSObject *obj, io_object_t *clientObj);
474 OSObject **object);
477 OSSharedPtr<OSObject>& object);
578 OSObject * target, void * reference);
600 OSObject * userIteratorObject;
609 virtual OSObject * getNextObject() APPLE_KEXT_OVERRIDE;
[all …]
H A DIOFilterInterruptEventSource.h65 typedef bool (*Filter)(OSObject *owner, IOFilterInterruptEventSource *sender);
77 virtual bool init(OSObject *inOwner,
83 interruptEventSource(OSObject *inOwner,
118 filterInterruptEventSource(OSObject *owner,
134 filterInterruptEventSource(OSObject *owner,
156 virtual bool init(OSObject *owner,
H A DIOTimerEventSource.h158 typedef void (*Action)(OSObject *owner, IOTimerEventSource *sender);
165 timerEventSource(OSObject *owner, Action action = NULL);
174 timerEventSource(uint32_t options, OSObject *owner, Action action = NULL);
184 timerEventSource(uint32_t options, OSObject *inOwner, ActionBlock action);
189 OSObject * owner, IOWorkLoop * workLoop);
195 virtual bool init(OSObject *owner, Action action = NULL);
296 virtual bool init(uint32_t options, OSObject *inOwner, Action inAction);
H A DIOCommandQueue.h48 (OSObject *, void *field0, void *field1, void *field2, void *field3);
68 static OSPtr<IOCommandQueue> commandQueue(OSObject *inOwner,
72 virtual bool init(OSObject *inOwner,
88 virtual int performAndFlush(OSObject *target = NULL,
H A DIOInterruptEventSource.h72 typedef void (*Action)(OSObject *owner, IOInterruptEventSource *sender, int count);
140 interruptEventSource(OSObject *owner,
155 interruptEventSource(OSObject *owner,
162 static void actionToBlock(OSObject *owner, IOInterruptEventSource *sender, int count);
173 virtual bool init(OSObject *owner,
/xnu-11215/iokit/IOKit/pwr_mgt/
H A DRootDomain.h133 (OSObject *target, const OSSymbol *type,
134 OSObject *val, uintptr_t refcon);
183 OSObject *value );
252 OSObject *details = NULL );
258 OSObject *details = NULL );
264 OSObject *details = NULL );
318 OSObject *target,
340 OSObject *target,
517 OSObject *obj);
585 OSObject *object,
[all …]
/xnu-11215/iokit/Kernel/
H A DIORegistryEntry.cpp46 #define super OSObject
495 OSObject * \
519 OSObject * \
731 OSObject *
734 OSObject * obj; in getProperty()
825 OSObject *
835 OSObject *
952 OSObject *
955 OSObject ** array; in setIndexedProperty()
956 OSObject * prior; in setIndexedProperty()
[all …]

1234567