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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_sinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbytebus()shortclass_id()static hwloc_pcidev_attr_screate(long address) Returns a newhwloc_pcidev_attr_sinstance for the specified memory address.static hwloc_pcidev_attr_s.Buffercreate(long address, int capacity) Create ahwloc_pcidev_attr_s.Bufferinstance at the specified memory.static @Nullable hwloc_pcidev_attr_screateSafe(long address) static @Nullable hwloc_pcidev_attr_s.BuffercreateSafe(long address, int capacity) bytedev()shortintdomain()bytefunc()floatstatic bytenbus(long struct) Unsafe version ofbus().static shortnclass_id(long struct) Unsafe version ofclass_id().static bytendev(long struct) Unsafe version ofdev().static shortndevice_id(long struct) Unsafe version ofdevice_id().static intndomain(long struct) Unsafe version ofdomain().static bytenfunc(long struct) Unsafe version offunc().static floatnlinkspeed(long struct) Unsafe version oflinkspeed().static bytenprog_if(long struct) Unsafe version ofprog_if().static bytenrevision(long struct) Unsafe version ofrevision().static shortnsubdevice_id(long struct) Unsafe version ofsubdevice_id().static shortnsubvendor_id(long struct) Unsafe version ofsubvendor_id().static shortnvendor_id(long struct) Unsafe version ofvendor_id().byteprog_if()byterevision()intsizeof()Returnssizeof(struct).shortshortshortMethods 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_sinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<hwloc_pcidev_attr_s>
-
domain
public int domain()- Returns:
- the value of the
domainfield.
-
bus
public byte bus()- Returns:
- the value of the
busfield.
-
dev
public byte dev()- Returns:
- the value of the
devfield.
-
func
public byte func()- Returns:
- the value of the
funcfield.
-
prog_if
public byte prog_if()- Returns:
- the value of the
prog_iffield.
-
class_id
public short class_id()- Returns:
- the value of the
class_idfield.
-
vendor_id
public short vendor_id()- Returns:
- the value of the
vendor_idfield.
-
device_id
public short device_id()- Returns:
- the value of the
device_idfield.
-
subvendor_id
public short subvendor_id()- Returns:
- the value of the
subvendor_idfield.
-
subdevice_id
public short subdevice_id()- Returns:
- the value of the
subdevice_idfield.
-
revision
public byte revision()- Returns:
- the value of the
revisionfield.
-
linkspeed
public float linkspeed()- Returns:
- the value of the
linkspeedfield.
-
create
Returns a newhwloc_pcidev_attr_sinstance for the specified memory address. -
createSafe
-
create
Create ahwloc_pcidev_attr_s.Bufferinstance 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().
-