Class hwloc_pcidev_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_pcidev_attr_s extends Struct<hwloc_pcidev_attr_s>

 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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • DOMAIN

      public static final int DOMAIN
      The struct member offsets.
    • BUS

      public static final int BUS
      The struct member offsets.
    • DEV

      public static final int DEV
      The struct member offsets.
    • FUNC

      public static final int FUNC
      The struct member offsets.
    • PROG_IF

      public static final int PROG_IF
      The struct member offsets.
    • CLASS_ID

      public static final int CLASS_ID
      The struct member offsets.
    • VENDOR_ID

      public static final int VENDOR_ID
      The struct member offsets.
    • DEVICE_ID

      public static final int DEVICE_ID
      The struct member offsets.
    • SUBVENDOR_ID

      public static final int SUBVENDOR_ID
      The struct member offsets.
    • SUBDEVICE_ID

      public static final int SUBDEVICE_ID
      The struct member offsets.
    • REVISION

      public static final int REVISION
      The struct member offsets.
    • LINKSPEED

      public static final int LINKSPEED
      The struct member offsets.
  • Constructor Details

    • hwloc_pcidev_attr_s

      public hwloc_pcidev_attr_s(ByteBuffer container)
      Creates a hwloc_pcidev_attr_s instance at the current position of the specified ByteBuffer 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
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<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

      public static hwloc_pcidev_attr_s create(long address)
      Returns a new hwloc_pcidev_attr_s instance for the specified memory address.
    • createSafe

      public static @Nullable hwloc_pcidev_attr_s createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static hwloc_pcidev_attr_s.Buffer create(long address, int capacity)
      Create a hwloc_pcidev_attr_s.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable hwloc_pcidev_attr_s.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ndomain

      public static int ndomain(long struct)
      Unsafe version of domain().
    • nbus

      public static byte nbus(long struct)
      Unsafe version of bus().
    • ndev

      public static byte ndev(long struct)
      Unsafe version of dev().
    • nfunc

      public static byte nfunc(long struct)
      Unsafe version of func().
    • nprog_if

      public static byte nprog_if(long struct)
      Unsafe version of prog_if().
    • nclass_id

      public static short nclass_id(long struct)
      Unsafe version of class_id().
    • nvendor_id

      public static short nvendor_id(long struct)
      Unsafe version of vendor_id().
    • ndevice_id

      public static short ndevice_id(long struct)
      Unsafe version of device_id().
    • nsubvendor_id

      public static short nsubvendor_id(long struct)
      Unsafe version of subvendor_id().
    • nsubdevice_id

      public static short nsubdevice_id(long struct)
      Unsafe version of subdevice_id().
    • nrevision

      public static byte nrevision(long struct)
      Unsafe version of revision().
    • nlinkspeed

      public static float nlinkspeed(long struct)
      Unsafe version of linkspeed().