Package de.gmxhome.conrad.JNALinux
Class JnaLinuxSerial.LibCExt.pollfd
java.lang.Object
com.sun.jna.Structure
de.gmxhome.conrad.JNALinux.JnaLinuxSerial.LibCExt.pollfd
- Enclosing interface:
- JnaLinuxSerial.LibCExt
@FieldOrder({"fd","events","revents"})
public static class JnaLinuxSerial.LibCExt.pollfd
extends com.sun.jna.Structure
Structure pollfd, to be used in OS call poll().
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
-
Field Summary
FieldsModifier and TypeFieldDescriptionshort
Input field, must contain a bitwise combination of POLLIN and POLLOUT.int
Input field, must contain a file descriptor returned by a previous open call.short
Output field, contains a bitwise combination of POLLIN, POLLOUT, POLLERR, POLLNVAL and perhaps other less relevant values.Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
fd
public int fdInput field, must contain a file descriptor returned by a previous open call. A negative value makes this pollfd entry invalid. The poll() system calls ignores invalid pollfd entries. -
events
public short eventsInput field, must contain a bitwise combination of POLLIN and POLLOUT. -
revents
public short reventsOutput field, contains a bitwise combination of POLLIN, POLLOUT, POLLERR, POLLNVAL and perhaps other less relevant values. Specifies the condition that is fulfilled by the corresponding file descriptor.
-
-
Constructor Details
-
pollfd
public pollfd()
-