Package org.lwjgl.util.hwloc
Class hwloc_pcidev_attr_s
- All Implemented Interfaces:
Pointer
struct hwloc_pcidev_attr_s {
unsigned int domain;
unsigned char bus;
unsigned char dev;
unsigned char func;
unsigned char prog_if;
unsigned short class_id;
unsigned short vendor_id;
unsigned short device_id;
unsigned short subvendor_id;
unsigned short subdevice_id;
unsigned char revision;
float linkspeed;
}
-
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 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_pcidev_attr_s
(ByteBuffer container) Creates ahwloc_pcidev_attr_s
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbyte
bus()
short
class_id()
static hwloc_pcidev_attr_s
create
(long address) Returns a newhwloc_pcidev_attr_s
instance for the specified memory address.static hwloc_pcidev_attr_s.Buffer
create
(long address, int capacity) Create ahwloc_pcidev_attr_s.Buffer
instance at the specified memory.static @Nullable hwloc_pcidev_attr_s
createSafe
(long address) static @Nullable hwloc_pcidev_attr_s.Buffer
createSafe
(long address, int capacity) byte
dev()
short
int
domain()
byte
func()
float
static byte
nbus
(long struct) Unsafe version ofbus()
.static short
nclass_id
(long struct) Unsafe version ofclass_id()
.static byte
ndev
(long struct) Unsafe version ofdev()
.static short
ndevice_id
(long struct) Unsafe version ofdevice_id()
.static int
ndomain
(long struct) Unsafe version ofdomain()
.static byte
nfunc
(long struct) Unsafe version offunc()
.static float
nlinkspeed
(long struct) Unsafe version oflinkspeed()
.static byte
nprog_if
(long struct) Unsafe version ofprog_if()
.static byte
nrevision
(long struct) Unsafe version ofrevision()
.static short
nsubdevice_id
(long struct) Unsafe version ofsubdevice_id()
.static short
nsubvendor_id
(long struct) Unsafe version ofsubvendor_id()
.static short
nvendor_id
(long struct) Unsafe version ofvendor_id()
.byte
prog_if()
byte
revision()
int
sizeof()
Returnssizeof(struct)
.short
short
short
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. -
DOMAIN
public static final int DOMAINThe struct member offsets. -
BUS
public static final int BUSThe struct member offsets. -
DEV
public static final int DEVThe struct member offsets. -
FUNC
public static final int FUNCThe struct member offsets. -
PROG_IF
public static final int PROG_IFThe struct member offsets. -
CLASS_ID
public static final int CLASS_IDThe struct member offsets. -
VENDOR_ID
public static final int VENDOR_IDThe struct member offsets. -
DEVICE_ID
public static final int DEVICE_IDThe struct member offsets. -
SUBVENDOR_ID
public static final int SUBVENDOR_IDThe struct member offsets. -
SUBDEVICE_ID
public static final int SUBDEVICE_IDThe struct member offsets. -
REVISION
public static final int REVISIONThe struct member offsets. -
LINKSPEED
public static final int LINKSPEEDThe struct member offsets.
-
-
Constructor Details
-
hwloc_pcidev_attr_s
Creates ahwloc_pcidev_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_pcidev_attr_s>
-
domain
public int domain()- Returns:
- the value of the
domain
field.
-
bus
public byte bus()- Returns:
- the value of the
bus
field.
-
dev
public byte dev()- Returns:
- the value of the
dev
field.
-
func
public byte func()- Returns:
- the value of the
func
field.
-
prog_if
public byte prog_if()- Returns:
- the value of the
prog_if
field.
-
class_id
public short class_id()- Returns:
- the value of the
class_id
field.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_id
field.
-
device_id
public short device_id()- Returns:
- the value of the
device_id
field.
-
subvendor_id
public short subvendor_id()- Returns:
- the value of the
subvendor_id
field.
-
subdevice_id
public short subdevice_id()- Returns:
- the value of the
subdevice_id
field.
-
revision
public byte revision()- Returns:
- the value of the
revision
field.
-
linkspeed
public float linkspeed()- Returns:
- the value of the
linkspeed
field.
-
create
Returns a newhwloc_pcidev_attr_s
instance for the specified memory address. -
createSafe
-
create
Create ahwloc_pcidev_attr_s.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ndomain
public static int ndomain(long struct) Unsafe version ofdomain()
. -
nbus
public static byte nbus(long struct) Unsafe version ofbus()
. -
ndev
public static byte ndev(long struct) Unsafe version ofdev()
. -
nfunc
public static byte nfunc(long struct) Unsafe version offunc()
. -
nprog_if
public static byte nprog_if(long struct) Unsafe version ofprog_if()
. -
nclass_id
public static short nclass_id(long struct) Unsafe version ofclass_id()
. -
nvendor_id
public static short nvendor_id(long struct) Unsafe version ofvendor_id()
. -
ndevice_id
public static short ndevice_id(long struct) Unsafe version ofdevice_id()
. -
nsubvendor_id
public static short nsubvendor_id(long struct) Unsafe version ofsubvendor_id()
. -
nsubdevice_id
public static short nsubdevice_id(long struct) Unsafe version ofsubdevice_id()
. -
nrevision
public static byte nrevision(long struct) Unsafe version ofrevision()
. -
nlinkspeed
public static float nlinkspeed(long struct) Unsafe version oflinkspeed()
.
-