public static class Udev.UdevContext extends PointerType
Udev.udev_new(). It is used to track library state and link
objects together. No global state is used by libudev, everything is always
linked to a udev context. Furthermore, multiple different udev contexts can
be used in parallel by multiple threads. However, a single context must not
be accessed by multiple threads in parallel. The caller is responsible for
providing suitable locking if they intend to use it from multiple threads.| Constructor and Description |
|---|
UdevContext() |
| Modifier and Type | Method and Description |
|---|---|
Udev.UdevDevice |
deviceNewFromSyspath(java.lang.String syspath)
Creates a udev device object based on information found in
/sys,
annotated with properties from the udev-internal device database. |
Udev.UdevEnumerate |
enumerateNew()
Create a udev enumerate object.
|
Udev.UdevContext |
ref()
Acquire a further reference to this object.
|
void |
unref()
Drop a reference to this object.
|
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toStringpublic Udev.UdevContext ref()
public void unref()
public Udev.UdevEnumerate enumerateNew()
public Udev.UdevDevice deviceNewFromSyspath(java.lang.String syspath)
/sys,
annotated with properties from the udev-internal device database. Initially,
the reference count of the device is 1.syspath - The path of the device in /sys.errno is set appropriately.