ZXFoundation™ 26h2
Loading...
Searching...
No Matches
ptf.cxxm File Reference

PTF (PERFORM TOPOLOGY FUNCTION) kernel API. More...

import std;
import zxfoundation.base.types;
import lib.bit;
import arch.s390x.cpu.features;
Include dependency graph for ptf.cxxm:

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.

Detailed Description

PTF (PERFORM TOPOLOGY FUNCTION) kernel API.

SPDX-License-Identifier: Apache-2.0