__of_overlay_apply_kunit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

  • 0 on success β€” we love a win πŸ’–
  • a negative errno on failure β€” not me crying 😭

πŸ”₯ SEE ALSO πŸ”₯


πŸ’€ 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