radeon_irq_kms_enable_hpd(9)
π radeon_irq_kms_enable_hpd(9) β like, the Kernel API Manual page, bestie π
okay so real talk, this whole page lives in the Kernel API Manual and it's about one tiny function that makes your monitor's "hey I got plugged in!!" interrupt actually fire. it's giving β¨unsung heroβ¨ energy, ngl.
πΈ NAME πΈ
radeon_irq_kms_enable_hpd β turn on the hotplug detect interrupt πβ¨
like... the function that goes "bestie, something just got plugged into the port" and the kernel actually listens. iconic behaviour fr fr.
β¨ SYNOPSIS β¨
void radeon_irq_kms_enable_hpd (struct radeon_device *rdev , unsigned hpd_mask );
that's it. that's the whole function. no return value, she just does the thing and dips π (void, yk? no receipts, no return address).
π«Ά ARGUMENTS π«Ά
rdevβ the radeon device pointer. literally the radeon device itself, hand it over, she needs it, don't ask questions πhpd_maskβ the mask of hpd pins you want to enable. one bit per pin, pick your faves, mask them in π
π₯ DESCRIPTION π₯
okay so here's the whole vibe: this thing enables the hotplug detect interrupt for a specific hpd pin, and it does it on all asics π
no caveats, no "only on the new ones", no fine print. every single asic gets the love. slay. π
so when something gets plugged into that hpd pin, the interrupt fires and the kernel notices. that's the whole plot, no cap. π¦
π§ SEE ALSO π§
the source lives right here, iykyk:
Kernel file ./drivers/gpu/drm/radeon/radeon_irq_kms.c
and the whole friend group is in there too, all of them, in this exact order, do not come for me:
radeon_hotplug_work_func(9)radeon_driver_irq_preinstall_kms(9)radeon_driver_irq_postinstall_kms(9)radeon_driver_irq_uninstall_kms(9)radeon_msi_ok(9)radeon_irq_kms_init(9)radeon_irq_kms_fini(9)radeon_irq_kms_sw_irq_get(9)radeon_irq_kms_sw_irq_get_delayed(9)radeon_irq_kms_sw_irq_put(9)radeon_irq_kms_pflip_irq_get(9)radeon_irq_kms_pflip_irq_put(9)radeon_irq_kms_enable_afmt(9)radeon_irq_kms_disable_afmt(9)radeon_irq_kms_disable_hpd(9)radeon_irq_kms_set_irq_n_enabled(9)
(and yes, radeon_irq_kms_disable_hpd(9) is literally right there. she's the opposite twin. the duality of woman π)
lowkey reminder: this page ships out of ./drivers/gpu/drm/radeon, dated October 2026. that's the source, the version vibe, and the date, all in one. kiss kiss, go enable some hotplug interrupts, ily πππΈ
π¦ 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