Package org.lwjgl.util.hwloc
Class hwloc_bridge_attr_s
- All Implemented Interfaces:
Pointer
struct hwloc_bridge_attr_s {
union {
{@link hwloc_pcidev_attr_s hwloc_pcidev_attr_s} pci;
} upstream;
hwloc_obj_bridge_type_t upstream_type;
union {
struct {
unsigned int domain;
unsigned char secondary_bus;
unsigned char subordinate_bus;
} pci;
} downstream;
hwloc_obj_bridge_type_t downstream_type;
unsigned depth;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionhwloc_bridge_attr_s
(ByteBuffer container) Creates ahwloc_bridge_attr_s
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic hwloc_bridge_attr_s
create
(long address) Returns a newhwloc_bridge_attr_s
instance for the specified memory address.static hwloc_bridge_attr_s.Buffer
create
(long address, int capacity) Create ahwloc_bridge_attr_s.Buffer
instance at the specified memory.static @Nullable hwloc_bridge_attr_s
createSafe
(long address) static @Nullable hwloc_bridge_attr_s.Buffer
createSafe
(long address, int capacity) int
depth()
int
byte
byte
int
static int
ndepth
(long struct) Unsafe version ofdepth()
.static int
ndownstream_pci_domain
(long struct) Unsafe version ofdownstream_pci_domain()
.static byte
ndownstream_pci_secondary_bus
(long struct) Unsafe version ofdownstream_pci_secondary_bus()
.static byte
ndownstream_pci_subordinate_bus
(long struct) Unsafe version ofdownstream_pci_subordinate_bus()
.static int
ndownstream_type
(long struct) Unsafe version ofdownstream_type()
.static hwloc_pcidev_attr_s
nupstream_pci
(long struct) Unsafe version ofupstream_pci()
.static int
nupstream_type
(long struct) Unsafe version ofupstream_type()
.int
sizeof()
Returnssizeof(struct)
.int
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
UPSTREAM
public static final int UPSTREAMThe struct member offsets. -
UPSTREAM_PCI
public static final int UPSTREAM_PCIThe struct member offsets. -
UPSTREAM_TYPE
public static final int UPSTREAM_TYPEThe struct member offsets. -
DOWNSTREAM
public static final int DOWNSTREAMThe struct member offsets. -
DOWNSTREAM_PCI
public static final int DOWNSTREAM_PCIThe struct member offsets. -
DOWNSTREAM_PCI_DOMAIN
public static final int DOWNSTREAM_PCI_DOMAINThe struct member offsets. -
DOWNSTREAM_PCI_SECONDARY_BUS
public static final int DOWNSTREAM_PCI_SECONDARY_BUSThe struct member offsets. -
DOWNSTREAM_PCI_SUBORDINATE_BUS
public static final int DOWNSTREAM_PCI_SUBORDINATE_BUSThe struct member offsets. -
DOWNSTREAM_TYPE
public static final int DOWNSTREAM_TYPEThe struct member offsets. -
DEPTH
public static final int DEPTHThe struct member offsets.
-
-
Constructor Details
-
hwloc_bridge_attr_s
Creates ahwloc_bridge_attr_s
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<hwloc_bridge_attr_s>
-
upstream_pci
- Returns:
- a
hwloc_pcidev_attr_s
view of theupstream.pci
field.
-
upstream_type
public int upstream_type()- Returns:
- the value of the
upstream_type
field.
-
downstream_pci_domain
public int downstream_pci_domain()- Returns:
- the value of the
downstream.pci.domain
field.
-
downstream_pci_secondary_bus
public byte downstream_pci_secondary_bus()- Returns:
- the value of the
downstream.pci.secondary_bus
field.
-
downstream_pci_subordinate_bus
public byte downstream_pci_subordinate_bus()- Returns:
- the value of the
downstream.pci.subordinate_bus
field.
-
downstream_type
public int downstream_type()- Returns:
- the value of the
downstream_type
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
create
Returns a newhwloc_bridge_attr_s
instance for the specified memory address. -
createSafe
-
create
Create ahwloc_bridge_attr_s.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
nupstream_pci
Unsafe version ofupstream_pci()
. -
nupstream_type
public static int nupstream_type(long struct) Unsafe version ofupstream_type()
. -
ndownstream_pci_domain
public static int ndownstream_pci_domain(long struct) Unsafe version ofdownstream_pci_domain()
. -
ndownstream_pci_secondary_bus
public static byte ndownstream_pci_secondary_bus(long struct) Unsafe version ofdownstream_pci_secondary_bus()
. -
ndownstream_pci_subordinate_bus
public static byte ndownstream_pci_subordinate_bus(long struct) Unsafe version ofdownstream_pci_subordinate_bus()
. -
ndownstream_type
public static int ndownstream_type(long struct) Unsafe version ofdownstream_type()
. -
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
.
-