dcn32_get_num_free_pipes(9)
π dcn32_get_num_free_pipes β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual, and today's main character is dcn32_get_num_free_pipes β yes she's a function, yes she counts pipes, yes this is her whole thing π
β¨ NAME β¨
dcn32_get_num_free_pipes β literally just calculating the number of free pipes, that's it, that's the gig π
πΈ SYNOPSIS πΈ
unsigned int dcn32_get_num_free_pipes (struct dc *dc , struct dc_state
*context );
like, she takes two structs and hands you back an unsigned int, no drama π«Ά
π¦ ARGUMENTS π¦
dcβ the current dc state, as in right now, the present tense one πcontextβ the new dc state, the one we're like... considering π
π₯ DESCRIPTION π₯
okay so the vibe check here is this: this function assumes that a "used" pipe is a pipe that has both a stream and a plane assigned to it. both. no cap. if it's missing either one, she's not counting it as used, periodt π
like, that's the whole assumption, that's the rule, don't come at her with edge cases she didn't ask for π
β RETURN β
she returns the number of free pipes available in the context β i.e. the new dc state, in case you forgot already (no judgment, it's a lot) π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.cβ yes, that's where she lives, go say hi π§ dcn32_helper_populate_phantom_dlg_params(9)dcn32_set_phantom_stream_timing(9)dcn32_assign_subvp_pipe(9)dcn32_enough_pipes_for_subvp(9)subvp_subvp_schedulable(9)subvp_drr_schedulable(9)subvp_vblank_schedulable(9)subvp_subvp_admissable(9)subvp_validate_static_schedulability(9)dcn32_allow_subvp_high_refresh_rate(9)dcn32_determine_max_vratio_prefetch(9)dcn32_assign_fpo_vactive_candidate(9)dcn32_find_vactive_pipe(9)
like, the whole subvp friend group honestly π obsessed π
and that's the page, bestie β sourced straight from./drivers/gpu/drm/amd/display/..., dated October 2026, and she's filed underdcn32_get_num_free_pipes(9). slay, go count some pipes πβ¨π
π¦ 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