kunit_deacti..._static_stub(9)
π 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 thestruct kunittest 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 π
- Kernel file
./include/kunit/static_stub.hβ go read it, iykyk π KUNIT_STATIC_STUB_REDIRECT(9)kunit_activate_static_stub(9)β the one that starts all this π
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
- 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