Searched refs:IODataQueue (Results 1 - 9 of 9) sorted by relevance

/macosx-10.10/xnu-2782.1.97/iokit/IOKit/
H A DIODataQueue.h33 #warning "IODataQueue is deprecated due to security issues in its interfaces, please use IOSharedDataQueue instead"
50 * @class IODataQueue : public OSObject
52 * @discussion The IODataQueue class is designed to allow kernel code to queue data to a user process. IODataQueue objects are designed to be used in a single producer / single consumer situation. As such, there are no locks on the data itself. Because the kernel enqueue and user-space dequeue methods follow a strict set of guidelines, no locks are necessary to maintain the integrity of the data struct.
56 * <br>In order for the IODataQueue instance to notify the user process that data is available, a notification mach port must be set. When the queue is empty and a new entry is added, a message is sent to the specified port.
63 class __attribute__((deprecated)) IODataQueue : public OSObject class in inherits:OSObject
65 class IODataQueue : public OSObject
68 OSDeclareDefaultStructors(IODataQueue)
87 * @abstract Static method that creates a new IODataQueue instance with the capacity specified in the size parameter.
88 * @discussion The actual size of the entire data queue memory region (to be shared into a user process) is equal to the capacity plus the IODataQueueMemory overhead. This overhead value can be determined from the DATA_QUEUE_MEMORY_HEADER_SIZE macro in <IOKit/IODataQueueShared.h>. The size of the data queue memory region must include space for the overhead of each IODataQueueEntry. This entry overhead can be determined from the DATA_QUEUE_ENTRY_HEADER_SIZE macro in <IOKit/IODataQueueShared.h>.<br> This method allocates a new IODataQueue instanc
[all...]
H A DIOSharedDataQueue.h36 #define DISABLE_DATAQUEUE_WARNING /* IODataQueue is deprecated, please use IOSharedDataQueue instead */
38 #include <IOKit/IODataQueue.h>
45 * @class IOSharedDataQueue : public IODataQueue
51 * <br>In order for the IODataQueue instance to notify the user process that data is available, a notification mach port must be set. When the queue is empty and a new entry is added, a message is sent to the specified port.
55 class IOSharedDataQueue : public IODataQueue
90 * @discussion The actual size of the entire data queue memory region (to be shared into a user process) is equal to the capacity plus the IODataQueueMemory overhead. This overhead value can be determined from the DATA_QUEUE_MEMORY_HEADER_SIZE macro in <IOKit/IODataQueueShared.h>. The size of the data queue memory region must include space for the overhead of each IODataQueueEntry. This entry overhead can be determined from the DATA_QUEUE_ENTRY_HEADER_SIZE macro in <IOKit/IODataQueueShared.h>.<br> This method allocates a new IODataQueue instance and then calls initWithCapacity() with the given size parameter. If the initWithCapacity() fails, the new instance is released and zero is returned.
99 * @discussion This method will create a new IOSharedDataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. If the initWithEntries() fails, the new instance is released and zero is returned.
/macosx-10.10/xnu-2782.1.97/iokit/Kernel/
H A DIODataQueue.cpp31 #include <IOKit/IODataQueue.h>
50 OSDefineMetaClassAndStructors(IODataQueue, OSObject)
52 IODataQueue *IODataQueue::withCapacity(UInt32 size)
54 IODataQueue *dataQueue = new IODataQueue;
66 IODataQueue *IODataQueue::withEntries(UInt32 numEntries, UInt32 entrySize)
68 IODataQueue *dataQueue = new IODataQueue;
[all...]
H A DIOSharedDataQueue.cpp42 #define super IODataQueue
44 OSDefineMetaClassAndStructors(IOSharedDataQueue, IODataQueue)
/macosx-10.10/IOHIDFamily-606.1.7/IOHIDSystem/
H A DIOHIDUserClient.h137 static UInt32 createIDForDataQueue(IODataQueue * eventQueue);
138 static void removeIDForDataQueue(IODataQueue * eventQueue);
139 static IODataQueue * copyDataQueueWithID(UInt32 queueID);
H A DIOHIDUserClient.cpp356 IOHIDEventSystemUserClient::createIDForDataQueue(IODataQueue * eventQueue)
365 OSDynamicCast(IODataQueue, gAllUserQueues->getObject(queueIdx));
374 IOHIDEventSystemUserClient::removeIDForDataQueue(IODataQueue * eventQueue)
392 IODataQueue *
395 IODataQueue * eventQueue;
398 eventQueue = OSDynamicCast(IODataQueue, gAllUserQueues->getObject(queueID - kIOHIDEventSystemUserQueueID));
458 IODataQueue * eventQueue = NULL;
513 IODataQueue * eventQueue = NULL;
562 IODataQueue * eventQueue = NULL;
629 removeIDForDataQueue(OSDynamicCast(IODataQueue, ob
[all...]
H A DIOHIDSystem.cpp1925 IOReturn IOHIDSystem::registerEventQueue(IODataQueue * queue)
1933 return self->registerEventQueueGated((IODataQueue *)arg0);
1938 IODataQueue * queue = (IODataQueue *)p1;
1950 IOReturn IOHIDSystem::unregisterEventQueue(IODataQueue * queue)
1958 return self->unregisterEventQueueGated((IODataQueue *)arg0);
1963 IODataQueue * queue = (IODataQueue *)p1;
/macosx-10.10/xnu-2782.1.97/iokit/conf/
H A DMakefile.template30 IODataQueue.cpo \
/macosx-10.10/IOHIDFamily-606.1.7/IOHIDSystem/IOKit/hidsystem/
H A DIOHIDSystem.h58 #include <IOKit/IODataQueue.h>
350 /* register the IODataQueue for the new user events */
351 virtual IOReturn registerEventQueue(IODataQueue * queue);
353 /* Unregister the IODataQueue for the new user events */
354 virtual IOReturn unregisterEventQueue(IODataQueue * queue);

Completed in 394 milliseconds