Class hwloc_bridge_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_bridge_attr_s extends Struct<hwloc_bridge_attr_s>

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

    • SIZEOF

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

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

      public static final int UPSTREAM
      The struct member offsets.
    • UPSTREAM_PCI

      public static final int UPSTREAM_PCI
      The struct member offsets.
    • UPSTREAM_TYPE

      public static final int UPSTREAM_TYPE
      The struct member offsets.
    • DOWNSTREAM

      public static final int DOWNSTREAM
      The struct member offsets.
    • DOWNSTREAM_PCI

      public static final int DOWNSTREAM_PCI
      The struct member offsets.
    • DOWNSTREAM_PCI_DOMAIN

      public static final int DOWNSTREAM_PCI_DOMAIN
      The struct member offsets.
    • DOWNSTREAM_PCI_SECONDARY_BUS

      public static final int DOWNSTREAM_PCI_SECONDARY_BUS
      The struct member offsets.
    • DOWNSTREAM_PCI_SUBORDINATE_BUS

      public static final int DOWNSTREAM_PCI_SUBORDINATE_BUS
      The struct member offsets.
    • DOWNSTREAM_TYPE

      public static final int DOWNSTREAM_TYPE
      The struct member offsets.
    • DEPTH

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

    • hwloc_bridge_attr_s

      public hwloc_bridge_attr_s(ByteBuffer container)
      Creates a hwloc_bridge_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_bridge_attr_s>
    • upstream_pci

      public hwloc_pcidev_attr_s upstream_pci()
      Returns:
      a hwloc_pcidev_attr_s view of the upstream.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

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

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

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

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

      public static hwloc_pcidev_attr_s nupstream_pci(long struct)
      Unsafe version of upstream_pci().
    • nupstream_type

      public static int nupstream_type(long struct)
      Unsafe version of upstream_type().
    • ndownstream_pci_domain

      public static int ndownstream_pci_domain(long struct)
      Unsafe version of downstream_pci_domain().
    • ndownstream_pci_secondary_bus

      public static byte ndownstream_pci_secondary_bus(long struct)
    • ndownstream_pci_subordinate_bus

      public static byte ndownstream_pci_subordinate_bus(long struct)
    • ndownstream_type

      public static int ndownstream_type(long struct)
      Unsafe version of downstream_type().
    • ndepth

      public static int ndepth(long struct)
      Unsafe version of depth().