amdgpu_device_pm_notifier(9)
π amdgpu_device_pm_notifier β the Kernel API Manual page, bestie edition π
okay so this is straight out of the Kernel API Manual, and the star of the show is amdgpu_device_pm_notifier(9). it's giving "tiny function, big job" energy and i'm obsessed. let's get into it π«Ά
β¨ NAME β¨
amdgpu_device_pm_notifier β the notification block for Suspend/Hibernate events. literally its whole personality is "hey, the system's about to nap, lemme handle that" π΄
πΈ SYNOPSIS πΈ
int amdgpu_device_pm_notifier (struct notifier_block *nb , unsigned long mode , void *data );
that's the whole signature, no cap. screenshot it πΈ
π ARGUMENTS π
nbβ notifier block. yeah. the block. the notifier one. that's the description, bestie, i'm not gonna invent lore πmodeβ suspend mode. this is the one that tells you what kind of sleepy time we're talking about.dataβ data. iconic, unbothered, says nothing. we love a mysterious king π₯
π¦ DESCRIPTION π¦
okay so real talk: this function gets called when the system is about to suspend or hibernate. like, the kernel hits it up right before the nap begins β¨
and what's it doing with that precious pre-nap moment? it's setting the appropriate flags so that eviction can be optimized in the pm prepare callback. that's it. that's the job. lowkey a king for it π
no extra behaviour, no secret agenda β that's the entire documented scope. don't go making things up about it, that's not the vibe π
π SEE ALSO π
the kernel file lives here: ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c β go bother it directly if you want the source tea β
and now the cast of everyone else in the amdgpu cinematic universe, in the exact order the manual gives them (yes, all of them, i would never do you dirty like that):
pcie_replay_count(9)board_info(9)uma/carveout_options(9)uma/carveout(9)amdgpu_device_supports_px(9)amdgpu_device_supports_boco(9)amdgpu_device_supports_baco(9)amdgpu_device_supports_smart_shift(9)amdgpu_device_mm_access(9)amdgpu_device_aper_access(9)amdgpu_device_vram_access(9)amdgpu_device_get_rev_id(9)amdgpu_device_asic_init(9)amdgpu_device_mem_scratch_init(9)amdgpu_device_mem_scratch_fini(9)amdgpu_device_program_register_sequence(9)amdgpu_device_pci_config_reset(9)amdgpu_device_pci_reset(9)amdgpu_device_resize_fb_bar(9)amdgpu_device_need_post(9)amdgpu_device_should_use_aspm(9)amdgpu_device_vga_set_decode(9)amdgpu_device_check_block_size(9)amdgpu_device_check_vm_size(9)amdgpu_device_check_arguments(9)amdgpu_switcheroo_set_state(9)amdgpu_switcheroo_can_switch(9)amdgpu_device_enable_virtual_display(9)amdgpu_device_parse_gpu_info_fw(9)amdgpu_device_ip_early_init(9)amdgpu_device_ip_init(9)amdgpu_device_fill_reset_magic(9)amdgpu_device_check_vram_lost(9)amdgpu_device_set_cg_state(9)amdgpu_device_ip_late_init(9)amdgpu_device_smu_fini_early(9)amdgpu_device_ip_fini(9)amdgpu_device_delayed_init_work_handler(9)amdgpu_device_ip_suspend_phase1(9)amdgpu_device_ip_suspend_phase2(9)amdgpu_device_ip_suspend(9)amdgpu_device_ip_resume_phase1(9)amdgpu_device_ip_resume_phase2(9)amdgpu_device_ip_resume_phase3(9)amdgpu_device_ip_resume(9)amdgpu_device_detect_sriov_bios(9)amdgpu_device_asic_has_dc_support(9)amdgpu_device_has_dc_support(9)amdgpu_device_check_iommu_direct_map(9)amdgpu_device_check_iommu_remap(9)amdgpu_device_init(9)amdgpu_device_fini_hw(9)amdgpu_device_evict_resources(9)amdgpu_device_prepare(9)amdgpu_device_complete(9)amdgpu_device_suspend(9)amdgpu_device_resume(9)amdgpu_device_reset_sriov(9)amdgpu_device_has_job_running(9)amdgpu_device_should_recover_gpu(9)amdgpu_device_gpu_recover(9)amdgpu_device_partner_bandwidth(9)amdgpu_device_gpu_bandwidth(9)amdgpu_device_get_pcie_info(9)amdgpu_device_is_peer_accessible(9)amdgpu_pci_error_detected(9)amdgpu_pci_mmio_enabled(9)amdgpu_pci_slot_reset(9)amdgpu_pci_resume(9)amdgpu_device_halt(9)amdgpu_device_get_gang(9)amdgpu_device_switch_gang(9)amdgpu_device_enforce_isolation(9)
and that's the page!! no options section, no exit statuses, no env vars β just a little notifier doing its one job, and honestly? respect. π
signing off from <pink>./drivers/gpu/drm/amd/amdgpu</pink>, dated October 2026 β catch you in the next manpage, bestie, mwah π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms