Enum Class MemorySeal

java.lang.Object
java.lang.Enum<MemorySeal>
org.newsclub.net.unix.memory.MemorySeal
All Implemented Interfaces:
Serializable, Comparable<MemorySeal>, Constable

public enum MemorySeal extends Enum<MemorySeal>
Specific "memory seal" operations.
Author:
Christian Kohlschütter
See Also:
  • Enum Constant Details

    • PREVENT_SEAL

      public static final MemorySeal PREVENT_SEAL
      Prevents any further modifications to the set of seals.
    • PREVENT_SHRINK

      public static final MemorySeal PREVENT_SHRINK
      Prevents shrinking the memory area in question.
    • PREVENT_GROW

      public static final MemorySeal PREVENT_GROW
      Prevents growing the memory area in question.
    • PREVENT_WRITE

      public static final MemorySeal PREVENT_WRITE
      Prevents writing to the memory area in question.
    • PREVENT_FUTURE_WRITE

      public static final MemorySeal PREVENT_FUTURE_WRITE
      Prevents writing to the memory area in question, except for shared writable mappings that were created prior to the seal being set. This is available on Linux since version 5.1, and on NetBSD since version 11.
  • Method Details

    • values

      public static MemorySeal[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemorySeal valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null