calculate_sw...deadline_dst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

ok so bestie, this is calculate_swath_deadline_dst β€” it's the little helper function that does the math for you and spits out the hdl dst position when you hand it a swath index ✨ (yes, that's literally the whole job, and it ate)

This page lives in section 9 of the Kernel API Manual, and yeah the title is a whole mouthful: calculate_sw...deadline_dst(9) πŸŽ€


🌸 SYNOPSIS

no cap, here's the exact signature, copy it character for character or it won't vibe:

uint32_t calculate_swath_deadline_dst (uint32_t swath_index , uint32_t
prefetch_swaths , uint32_t pre_first_hdl_x1000 , uint32_t
rec_first_hdl_x1000 , uint32_t pre_hdl_delta_x1000 , uint32_t
rec_hdl_delta_x1000 );

like, it returns a uint32_t and takes six uint32_ts. six. iconic of it honestly πŸ’œ


πŸ¦‹ ARGUMENTS

ok so this is the part where the docs simply did not show up 😭 every single one of these is marked -- undescribed -- in the original. i'm not gonna invent lore, that would be lying to you and we don't do that here πŸ™ˆ so here's the full roster, exactly as mysterious as the source left it:

  • swath_index β€” -- undescribed -- (mystery girl. unknown. we simply don't know.)
  • prefetch_swaths β€” -- undescribed -- (also undescribed, the silence is loud)
  • pre_first_hdl_x1000 β€” -- undescribed -- (undescribed, but the name has _x1000 in it which is giving fixed-point energy, iykyk)
  • rec_first_hdl_x1000 β€” -- undescribed -- (same situation, still undescribed)
  • rec_first_hdl_delta_x1000 β€” -- undescribed -- (undescribed, delta flavored)
  • rec_hdl_delta_x1000 β€” -- undescribed -- (last one, also undescribed, we stan a consistent absence πŸ’€)
fr fr: don't guess at these semantics. the manpage literally left them blank. if you need to know, go read the source, bestie 🫢

✨ RETURN

it hands you back the dst line associated with the swath deadline ⭐ that's the value, that's the whole return, go off king πŸ‘‘

aaand then the original just drops this absolute unit of a separator line at the end of the RETURN section, so here it is in all its glory, verbatim, we do not gatekeep:

***********************************************************************************************************

like… 107 asterisks of pure main character energy. obsessed. πŸ”₯


🌈 SEE ALSO

ok the cross-reference situation is stacked, bestie. first, the kernel file this thing lives in β€” full path, no cuts:

./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/alternate_pstate_shared_lib.c

and then the whole friend group, all in section 9, in this exact order:

that's fourteen besties plus the file. a whole group chat 🧚


πŸŽ€ sign-off

this page came from the source path ./drivers/gpu/drm/amd/display/... and the version/date stamp on it is October 2026, stamped with the title calculate_sw...deadline_dst(9) at the bottom like a little signature. slay, bye, go read the source πŸ’–πŸŒΈπŸ’…

πŸ“¦ where this page comes from