Class hwloc_topology_discovery_support

All Implemented Interfaces:
Pointer

public class hwloc_topology_discovery_support extends Struct<hwloc_topology_discovery_support>

 struct hwloc_topology_discovery_support {
     unsigned char pu;
     unsigned char numa;
     unsigned char numa_memory;
     unsigned char disallowed_pu;
     unsigned char disallowed_numa;
     unsigned char cpukind_efficiency;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PU
      The struct member offsets.
    • NUMA

      public static final int NUMA
      The struct member offsets.
    • NUMA_MEMORY

      public static final int NUMA_MEMORY
      The struct member offsets.
    • DISALLOWED_PU

      public static final int DISALLOWED_PU
      The struct member offsets.
    • DISALLOWED_NUMA

      public static final int DISALLOWED_NUMA
      The struct member offsets.
    • CPUKIND_EFFICIENCY

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

    • hwloc_topology_discovery_support

      public hwloc_topology_discovery_support(ByteBuffer container)
      Creates a hwloc_topology_discovery_support 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_topology_discovery_support>
    • pu

      public boolean pu()
      Returns:
      the value of the pu field.
    • numa

      public boolean numa()
      Returns:
      the value of the numa field.
    • numa_memory

      public boolean numa_memory()
      Returns:
      the value of the numa_memory field.
    • disallowed_pu

      public boolean disallowed_pu()
      Returns:
      the value of the disallowed_pu field.
    • disallowed_numa

      public boolean disallowed_numa()
      Returns:
      the value of the disallowed_numa field.
    • cpukind_efficiency

      public boolean cpukind_efficiency()
      Returns:
      the value of the cpukind_efficiency field.
    • create

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

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

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

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

      public static boolean npu(long struct)
      Unsafe version of pu().
    • nnuma

      public static boolean nnuma(long struct)
      Unsafe version of numa().
    • nnuma_memory

      public static boolean nnuma_memory(long struct)
      Unsafe version of numa_memory().
    • ndisallowed_pu

      public static boolean ndisallowed_pu(long struct)
      Unsafe version of disallowed_pu().
    • ndisallowed_numa

      public static boolean ndisallowed_numa(long struct)
      Unsafe version of disallowed_numa().
    • ncpukind_efficiency

      public static boolean ncpukind_efficiency(long struct)
      Unsafe version of cpukind_efficiency().