ZXFoundation™ 26h2
Loading...
Searching...
No Matches
arch.s390x.cpu.ptf Module Reference

Data Structures

struct  arch::s390x::cpu::ptf::detail::ptf_result
 Raw decoded PTF result. More...

Enumerations

enum class  function_code : u8 { horizontal_polarization = 0 , vertical_polarization = 1 , check_topo_change_status = 2 }
enum class  polarization : u8 { horizontal = 0 , vertical = 1 }
enum class  rejection_reason : u8 { unspecified = 0 , already_polarized = 1 , change_in_process = 2 }

Functions

auto arch::s390x::cpu::ptf::consume_topology_change_pending () noexcept -> bool
 Check (and, if pending, consume) the topology-change- report-pending condition for this configuration.
template<function_code Fc>
auto arch::s390x::cpu::ptf::detail::invoke () noexcept -> ptf_result
 Invoke PTF raw.
template<polarization Pol>
auto arch::s390x::cpu::ptf::set_polarization () noexcept -> std::expected< void, rejection_reason >
 Request that all CPUs in the configuration be moved to the given polarization.

Variables

condition_code cc {}
u8 rc {}

Files

file  arch/s390x/cpu/ptf.cxxm
 PTF (PERFORM TOPOLOGY FUNCTION) kernel API.