Klasse IOKit.IOObject
- Alle implementierten Schnittstellen:
NativeMapped
- Bekannte direkte Unterklassen:
IOKit.IOIterator
,IOKit.IORegistryEntry
- Umschließende Schnittstelle:
IOKit
IOKitLib represents IOKit objects outside the kernel with the types
io_object_t, io_registry_entry_t, io_service_t, and io_connect_t. Function
names usually begin with the type of object they are compatible with - e.g.,
IOObjectRelease can be used with any io_object_t. Inside the kernel, the c++
class hierarchy allows the subclasses of each object type to receive the same
requests from user level clients, for example in the kernel, IOService is a
subclass of IORegistryEntry, which means any of the IORegistryEntryXXX
functions in IOKitLib may be used with io_service_t's as well as
io_registry_t's. There are functions available to introspect the class of the
kernel object which any io_object_t et al. represents. IOKit objects returned
by all functions should be released with IOKit.IOObjectRelease(com.sun.jna.platform.mac.IOKit.IOObject)
.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
conformsTo
(String className) Convenience method forIOKit.IOObjectConformsTo(com.sun.jna.platform.mac.IOKit.IOObject, java.lang.String)
on this object.int
release()
Convenience method forIOKit.IOObjectRelease(com.sun.jna.platform.mac.IOKit.IOObject)
on this object.Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
IOObject
public IOObject() -
IOObject
-
-
Methodendetails
-
conformsTo
Convenience method forIOKit.IOObjectConformsTo(com.sun.jna.platform.mac.IOKit.IOObject, java.lang.String)
on this object.- Parameter:
className
- The name of the class.- Gibt zurück:
- If the object handle is valid, and represents an object in the kernel that dynamic casts to the class true is returned, otherwise false.
-
release
public int release()Convenience method forIOKit.IOObjectRelease(com.sun.jna.platform.mac.IOKit.IOObject)
on this object.- Gibt zurück:
- 0 if successful, otherwise a
kern_return_t
error code.
-