Enumerations | |
| enum class | cpu_hotplug_notify : u8 { pre_up = 0 , post_up = 1 , pre_down = 2 , post_down = 3 , pre_setup = 4 , post_teardown = 5 } |
| Notification reason code for the hotplug notifier chain. | |
| enum class | cpu_hotplug_state : u8 { absent = 0 , present = 1 , possible = 2 , online = 3 , offline = 4 , failed = 5 } |
| CPU lifecycle states per the hotplug state machine. | |
Typedefs | |
| using | arch::s390x::cpu::hotplug::hotplug_callback = auto (*)(u16 cpu_id, cpu_hotplug_notify reason) noexcept -> void |
| Notifier callback signature. | |
Functions | |
| auto | arch::s390x::cpu::hotplug::cpu_down (u16 cpu_id) noexcept -> ::std::expected< void, ::lib::kernel_error > |
| Take a CPU offline. | |
| auto | arch::s390x::cpu::hotplug::cpu_is_online (u16 cpu_id) noexcept -> bool |
| Check if a CPU is online. | |
| auto | arch::s390x::cpu::hotplug::cpu_is_possible (u16 cpu_id) noexcept -> bool |
| Check if a CPU can be brought online. | |
| auto | arch::s390x::cpu::hotplug::cpu_is_present (u16 cpu_id) noexcept -> bool |
| Check if hardware exists at this slot. | |
| auto | arch::s390x::cpu::hotplug::cpu_state (u16 cpu_id) noexcept -> cpu_hotplug_state |
| Query the current hotplug state of a CPU. | |
| auto | arch::s390x::cpu::hotplug::cpu_up (u16 cpu_id) noexcept -> ::std::expected< void, ::lib::kernel_error > |
| Bring a CPU online. | |
| auto | arch::s390x::cpu::hotplug::hotplug_init () noexcept -> void |
| Initialize the hotplug subsystem — mark BSP online. | |
| auto | arch::s390x::cpu::hotplug::hotplug_mark_possible (u16 cpu_id) noexcept -> void |
| Mark a CPU as possible (ready for online). | |
| auto | arch::s390x::cpu::hotplug::hotplug_mark_present (u16 cpu_id) noexcept -> void |
| Mark a CPU slot as present (firmware reports hardware exists). | |
| auto | arch::s390x::cpu::hotplug::hotplug_notify_str (cpu_hotplug_notify r) noexcept -> ::std::string_view |
| Resolve hotplug notify reason to a human-readable string. | |
| auto | arch::s390x::cpu::hotplug::hotplug_register_notifier (hotplug_callback cb) noexcept -> bool |
| Register a hotplug notifier. | |
| auto | arch::s390x::cpu::hotplug::is_valid_hotplug_target (cpu_hotplug_state s) noexcept -> bool |
| Check whether a state is a valid hotplug target. | |
Variables | |
| constexpr u32 | arch::s390x::cpu::hotplug::HOTPLUG_NOTIFIER_MAX = 8 |
| Maximum number of registered hotplug notifiers. | |
Files | |
| file | arch/s390x/cpu/hotplug.zcomponent/hotplug.cxxm |
| file | arch/s390x/cpu/hotplug.zcomponent/hotplug.cxx |