amdgpu_atpx_parse_functions(9)
π amdgpu_atpx_parse_functions β kernel API manual, bestie edition β¨
okay so real talk, we're in the Kernel API Manual today and the star of the show is amdgpu_atpx_parse_functions(9). yes it's a mouthful, no you don't have to say it out loud at a party. let's get into it π«Ά
β¨ NAME β¨
amdgpu_atpx_parse_functions β literally just parses supported functions, that's the whole vibe π
π¦ SYNOPSIS π¦
void amdgpu_atpx_parse_functions (struct amdgpu_atpx_functions *f , u32 mask );
look at her. returns nothing, takes two things, minds her own business. iconic π
π ARGUMENTS π
fβ the supported functions struct π this is where the answers go, she's the container of the whole operationmaskβ the supported functions mask straight from ATPX, freshly delivered, no cap πΈ
π§ DESCRIPTION π§
so here's the deal, bestie. this function takes that supported functions mask from the ATPX function ATPTX_FUNCTION_VERIFY_INTERFACEβ wait hold on, it's ATPX_FUNCTION_VERIFY_INTERFACE, my bad, typing is hard π β and uses it to figure out which functions are actually supported.
and the tea? this applies to all asics. every single one. no exceptions, no "well actually this one is different". fr fr π
lowkey she's just the translator: mask goes in, "here's what you can do" comes out. very main character energy for such a small function honestly π¦
π SEE ALSO π
the whole friend group, in order, go say hi:
- Kernel file
./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.cβ the source file herself π amdgpu_atpx_call(9)amdgpu_atpx_validate(9)amdgpu_atpx_verify_interface(9)amdgpu_atpx_set_discrete_state(9)amdgpu_atpx_switch_disp_mux(9)amdgpu_atpx_switch_i2c_mux(9)amdgpu_atpx_switch_start(9)amdgpu_atpx_switch_end(9)amdgpu_atpx_switchto(9)amdgpu_atpx_power_state(9)amdgpu_atpx_pci_probe_handle(9)amdgpu_atpx_init(9)amdgpu_atpx_get_client_id(9)amdgpu_atpx_detect(9)amdgpu_register_atpx_handler(9)amdgpu_unregister_atpx_handler(9)
ok that's the whole page, go touch some grass (after you read the source) π±
mwah π this came from ./drivers/gpu/drm/amd/amdgpu, stamped October 2026, and the page name is amdgpu_atpx_parse_functions(9) in case you forgot already π stan her, she ate π₯πβ¨
π¦ 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