|
Mac Dev Center
Mac OS X Reference Library Drivers, Kernel, & Hardware: Kernel Device Drivers Kernel Framework Reference
|
IOUserClient |
| Inherits from: | |
| Declared In: |
Provides a basis for communication between client applications and I/O Kit objects.
Release the mach_port_t reference held within the OSAsyncReference64 structure.
Release the mach_port_t passed to registerNotificationPort().
exportObjectToClient |
public
virtual IOReturn exportObjectToClient( task_t task, OSObject *obj, io_object_t *clientObj);
taskThe task.
objThe object we want to export to the client.
clientObjReturned value is the client's port name.
Make an arbitrary OSObject available to the client task.
releaseAsyncReference64 |
Release the mach_port_t reference held within the OSAsyncReference64 structure.
public
static IOReturn releaseAsyncReference64( OSAsyncReference64 reference);
referenceThe reference passed to the subclass IOAsyncMethod, or externalMethod() in the IOExternalMethodArguments.asyncReference field.
A return code.
The OSAsyncReference64 structure passed to async methods holds a reference to the wakeup mach port, which should be released to balance each async method call. Behavior is undefined if these calls are not correctly balanced.
releaseNotificationPort |
Release the mach_port_t passed to registerNotificationPort().
public
static IOReturn releaseNotificationPort( mach_port_t port);
referenceThe mach_port_t argument previously passed to the subclass implementation of registerNotificationPort().
A return code.
The mach_port_t passed to the registerNotificationPort() methods should be released to balance each call to registerNotificationPort(). Behavior is undefined if these calls are not correctly balanced.
removeMappingForDescriptor |
public
IOMemoryMap * removeMappingForDescriptor( IOMemoryDescriptor *memory);
memoryThe memory descriptor instance previously returned by the implementation of clientMemoryForType().
A reference to the first IOMemoryMap instance found in the list of mappings created by IOUserClient from that passed memory descriptor is returned, or zero if none exist. The caller should release this reference.
Remove the first mapping created from the memory descriptor returned by clientMemoryForType() from IOUserClient's list of mappings. If such a mapping exists, it is retained and the reference currently held by IOUserClient is returned to the caller.
ExpansionData |
protected
struct ExpansionData { };
This structure will be used to expand the capablilties of this class in the future.
reserved |
protected
ExpansionData * reserved;
Reserved for future use. (Internal use only)
Last Updated: 2009-10-14