__of_overlay_apply_kunit(9)
π __of_overlay_apply_kunit β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual, and it's all about __of_overlay_apply_kunit β no cap, that double-underscore is doing main character energy π
π NAME π
__of_overlay_apply_kunit β the managed of_overlay_fdt_apply() variant, but make it a test π
β¨ SYNOPSIS β¨
int __of_overlay_apply_kunit (struct kunit *test , u8 *overlay_begin ,
const u8 *overlay_end );
like, that's the whole signature. slay π«Ά
πΈ ARGUMENTS πΈ
testβ the test context, literally the whole vibe of "which test am I" π§overlay_beginβ start address of the overlay you're applying, iykyk βoverlay_endβ end address of that same overlay, closing the range π₯
π¦ DESCRIPTION π¦
okay so lowkey this is mostly internal API π β like, if you want the friendly version, go look at of_overlay_apply_kunit, that's the wrapper that makes this easier to use. bestie behaviour fr fr π
it's similar to of_overlay_fdt_apply, except the overlay is managed by the test case, and it gets automatically removed with of_overlay_remove after the test case concludes. so you don't have to clean up, it just handles itself, iconic π
π RETURN π
0on success β we love a win π- a negative
errnoon failure β not me crying π
π₯ SEE ALSO π₯
- Kernel file
./include/kunit/of.h of_overlay_apply_kunit(9)
π tiny little sign-off π
this whole page lives under ./include/kunit (that's the source, bestie), and it's dated October 2026 β so yeah, from the Kernel API Manual, with love πΈππ periodt.
π¦ 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