|
ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IONetworkUserClient |
| Inherits from: | |
| Declared In: |
An IOUserClient created by an IONetworkInterface to manage user space requests.
Get the capacity of an IONetworkData object, described by the size of its data buffer.
Return an opaque handle to a provider's IONetworkData object.
Get the IOService which is the provider of this user client.
Read the data buffer in an IONetworkData object and copy this data to a destination buffer provided by the caller.
Handle a request to set properties from non-kernel clients. This call is propagated to our provider.
Write to the data buffer in an IONetworkData object with data from a source buffer provided by the caller.
getNetworkDataCapacity |
Get the capacity of an IONetworkData object, described by the size of its data buffer.
protected
virtual IOReturn getNetworkDataCapacity( OSSymbol *key, UInt32 *capacity);
keyThe OSSymbol key of an IONetworkData object.
capacityA pointer to the capacity value returned by this method.
kIOReturnSuccess on success, kIOReturnBadArgument if an argument is invalid.
getNetworkDataHandle |
Return an opaque handle to a provider's IONetworkData object.
protected
virtual IOReturn getNetworkDataHandle( char *name, OSSymbol **handle, IOByteCount nameSize, IOByteCount *handleSizeP);
nameA C string with the name of the IONetworkData object.
handleIf an IONetworkData object with the given name is found, then its associated OSSymbol object is written to this address.
nameSizeThe size of the name string, including the final terminating null character.
handleSizePThe size of the buffer allocated by the caller to store the handle. This should be 4 bytes.
kIOReturnSuccess on success, kIOReturnBadArgument if an argument is invalid, or kIOReturnNoMemory if unable to allocate memory.
Called to obtain an unique handle that maps to an IONetworkData object. This handle can be later passed to other methods defined in this class to refer to the same object.
getService |
Get the IOService which is the provider of this user client.
protected
virtual IOService * getService();
Returns the IONetworkInterface that created the user client.
readNetworkData |
Read the data buffer in an IONetworkData object and copy this data to a destination buffer provided by the caller.
protected
virtual IOReturn readNetworkData( OSSymbol *key, void *dstBuffer, IOByteCount *dstBufferSize);
keyThe OSSymbol key associated with an IONetworkData object.
dstBufferThe destination buffer provided by the caller.
dstBufferSizePointer to an integer that the caller must initialize to hold the size of the destination buffer. This method will overwrite it with the actual number of bytes written.
kIOReturnSuccess on success, kIOReturnBadArgument if an argument is invalid, or an error from IONetworkData::read().
setProperties |
Handle a request to set properties from non-kernel clients. This call is propagated to our provider.
protected
virtual IOReturn setProperties( OSObject *properties);
propertiesAn OSObject subclass that describes one or more properties.
The return value from the invocation of this method in our provider is returned.
writeNetworkData |
Write to the data buffer in an IONetworkData object with data from a source buffer provided by the caller.
protected
virtual IOReturn writeNetworkData( OSSymbol *key, void *srcBuffer, IOByteCount srcBufferSize);
keyThe OSSymbol key associated with an IONetworkData object.
srcBufferThe source buffer provided by the caller.
srcBufferSizeThe size of the source buffer.
kIOReturnSuccess on success, kIOReturnBadArgument if an argument is invalid, or an error from IONetworkData::write().
|
Last Updated: 2009-02-23