public class IOKitUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static CoreFoundation.CFMutableDictionaryRef |
getBSDNameMatchingDict(String bsdName)
Convenience method to get the IO dictionary matching a bsd name
|
static boolean |
getIORegistryBooleanProperty(int entry,
String key)
Convenience method to get a Boolean value from an IO Registry
|
static byte[] |
getIORegistryByteArrayProperty(int entry,
String key)
Convenience method to get a byte array value from an IO Registry
|
static int |
getIORegistryIntProperty(int entry,
String key)
Convenience method to get an Int value from an IO Registry
|
static long |
getIORegistryLongProperty(int entry,
String key)
Convenience method to get a Long value from an IO Registry
|
static String |
getIORegistryStringProperty(int entry,
String key)
Convenience method to get a String value from an IO Registry
|
static int |
getMatchingService(String serviceName)
Opens an IOService matching the given name
|
static int |
getMatchingServices(CoreFoundation.CFMutableDictionaryRef matchingDictionary,
com.sun.jna.ptr.IntByReference serviceIterator)
Convenience method to get matching IOService objects
|
static int |
getMatchingServices(String serviceName,
com.sun.jna.ptr.IntByReference serviceIterator)
Convenience method to get matching IOService objects
|
static int |
getRoot()
Gets the IO Registry root
|
public static int getRoot()
public static int getMatchingService(String serviceName)
serviceName - The service name to matchpublic static int getMatchingServices(String serviceName, com.sun.jna.ptr.IntByReference serviceIterator)
serviceName - The service name to matchserviceIterator - An interator over matching items, set on returnpublic static int getMatchingServices(CoreFoundation.CFMutableDictionaryRef matchingDictionary, com.sun.jna.ptr.IntByReference serviceIterator)
matchingDictionary - The dictionary to matchserviceIterator - An interator over matching items, set on returnpublic static String getIORegistryStringProperty(int entry, String key)
entry - A handle to the registry entrykey - The string name of the key to retrievepublic static long getIORegistryLongProperty(int entry,
String key)
entry - A handle to the registry entrykey - The string name of the key to retrievepublic static int getIORegistryIntProperty(int entry,
String key)
entry - A handle to the registry entrykey - The string name of the key to retrievepublic static boolean getIORegistryBooleanProperty(int entry,
String key)
entry - A handle to the registry entrykey - The string name of the key to retrievepublic static byte[] getIORegistryByteArrayProperty(int entry,
String key)
entry - A handle to the registry entrykey - The string name of the key to retrievepublic static CoreFoundation.CFMutableDictionaryRef getBSDNameMatchingDict(String bsdName)
bsdName - The bsd name of the registry entryCopyright © 2010–2018 oshi. All rights reserved.