dcn32_get_num_free_pipes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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 under dcn32_get_num_free_pipes(9). slay, go count some pipes πŸŽ€βœ¨πŸ’–
πŸ“¦ where this page comes from