of_overlay_fdt_apply_kunit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– of_overlay_fdt_apply_kunit(9) πŸ’–

okay bestie, you're looking at the Kernel API Manual page for of_overlay_fdt_apply_kunit β€” the KUnit helper that's literally "test-managed overlay" coded. ✨


🌸 NAME 🌸

of_overlay_fdt_apply_kunit β€” Test managed of_overlay_fdt_apply()

πŸŽ€ SYNOPSIS πŸŽ€

int of_overlay_fdt_apply_kunit (struct kunit *test , void *overlay_fdt ,
       u32 overlay_fdt_size , int *ovcs_id );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” test context. it's the test's own little context bubble, the vibe check for the test itself πŸ’…
  • overlay_fdt β€” device tree overlay to apply. the actual overlay bestie, no cap 🌈
  • overlay_fdt_size β€” size in bytes of overlay_fdt. bytes, not vibes, okay? πŸ“
  • ovcs_id β€” identifier of overlay, used to remove the overlay. keep it around for cleanup time 🧹

✨ DESCRIPTION ✨

Literally just like of_overlay_fdt_apply, except the overlay is managed by the test case and is automatically removed with of_overlay_remove after the test case concludes. the test case handles teardown, you just vibe 🫢

πŸ”₯ RETURN πŸ”₯

  • 0 on success, negative errno on failure 😭

πŸ‘‘ SEE ALSO πŸ‘‘


made with πŸ’œ from ./drivers/of Β· October 2026 β€” slay, bestie, go test those overlays πŸŽ€

πŸ“¦ where this page comes from