kunit_deacti..._static_stub(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kunit_deactivate_static_stub(9) β€” like, the whole vibe

okay bestie, so this is a page straight out of the Kernel API Manual, and it's about undoing a function redirection. Yes, undoing. We love a clean exit. πŸŽ€


✨ NAME ✨

kunit_deactivate_static_stub β€” disable a function redirection. That's it, that's the tweet. πŸ’…


🌸 SYNOPSIS 🌸

void kunit_deactivate_static_stub (struct kunit *test , void
*real_fn_addr );

literally just those two args, no cap. πŸ¦‹


🫢 ARGUMENTS 🫢

  • test β€” a pointer to the struct kunit test context for the current test. like, which test are we doing this for, bestie? that one. ✨
  • real_fn_addr β€” the address of the function to no-longer redirect. the og function. the real one. the main character. πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea β˜•: this function deactivates a redirection configured with kunit_activate_static_stub.

Once this function returns, calls to real_fn_addr will execute the original real_fn β€” not any previously-configured replacement. periodt. πŸ’€

it's giving "we're done pretending now, back to reality." no lingering stubs, no weird ghost behaviour, just the actual function doing its actual job again. slay. 🌈


πŸ‘€ SEE ALSO πŸ‘€


ngl, if you activated a stub and never deactivated it, that's on you bestie πŸ™ˆ β€” this is your cleanup era.

and that's the page!! πŸŽ€ source is ./include/kunit, version vibes are October 2026, and this manual moment was brought to you by the kunit_deacti..._static_stub(9) girlies. mwah. πŸ’œπŸ¦‹β­

πŸ“¦ where this page comes from