dc_assert_fp_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dc_assert_fp_enabled β€” a Kernel API Manual moment (section 9, bestie) πŸŽ€

okay so first things first: this gorgeous little page lives in the Kernel API Manual, section 9, and the whole entire star of the show is dc_assert_fp_enabled. say it with me. iconic.


✨ NAME ✨

dc_assert_fp_enabled β€” literally just checks if FPU protection is enabled, that's it, that's the vibe πŸ¦‹


🌸 SYNOPSIS 🌸

void dc_assert_fp_enabled (void );

like, no cap, that's the whole signature. she's lowkey minimalist.


πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments. zero. none. she takes nothing from nobody, periodt πŸ’…

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function tells you whether the code is already under FPU protection or not. that's the entire job. she's not doing anything fancy, she's just telling you. 🫢

and like, a function that works as an API for a set of FPU operations can use this function for checking if the caller invoked it after DC_FP_START. yep β€” that's the whole point. she's the vibe check for "did you actually wrap this in DC_FP_START first, or are you out here freelancing??" 😭

for example, take a look at dcn20_fpu.c file. that's your reference material, bestie, go read it. πŸ“–βœ¨


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/dc_fpu.c β€” the source file, the mothership, the main character πŸ‘‘
  • DC FPU manipulation overview(9) β€” the big-picture lore, start here honestly
  • dc_is_fp_enabled(9) β€” the sibling that asks a very similar question πŸ‘€
  • dc_fpu_begin(9) β€” the opening act πŸŒ…
  • dc_fpu_end(9) β€” the closing act πŸŒ™

ngl if you're calling FPU stuff without checking your protection status first, that's giving chaos energy and not in a fun way πŸ’€ go read dcn20_fpu.c, i'm begging.

and that's the page!! πŸ“ sign-off time: this lil beauty comes from ./drivers/gpu/drm/amd/display/... and she's dated October 2026 β€” put that in your calendar, mwah πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from