objpool_drop(9)
π objpool_drop(9) β like, the Kernel API Manual page you actually wanna read π
okay bestie, pull up a chair β¨ this one's from the Kernel API Manual and it's lowkey one of the more dramatic little functions in the objpool saga. it's giving "last one out turns off the lights" energy, and honestly? iconic. π―οΈ
πΈ NAME πΈ
objpool_drop β discard the object and deref objpool. that's it, that's the whole vibe. drop the object, deref the pool, slay. π
β¨ SYNOPSIS β¨
int objpool_drop (void *obj , struct objpool_head *pool );
look at her. four words and a return type. main character energy fr fr π«Ά
π¦ ARGUMENTS π¦
objβ object ptr to be discarded. yeah, the actual pointer to the object you're letting go of. bye bestie πpoolβ object pool. the pool it belongs to, natch. π
π RETURN π
0β if objpool was released. congrats, the pool is free, she's done, periodt π-EAGAINβ if there are still outstanding objects. nope, not yet, some of the girlies are still in use π try again later
π₯ DESCRIPTION π₯
so here's the tea, bestie π΅ objpool_drop is normally for the release of outstanding objects after objpool cleanup β that's objpool_fini, iykyk.
think of this example, because it's the whole point:
akretprobeis unregistered andobjpool_finiis called to release all remained objects, but there are still objects being used by unfinishedkretprobes(like blockable function:sys_accept). π¬
so yeah β objpool_fini shows up like "everyone out" and a couple of objects are still mid-sidequest. rude. but fair.
so only when the last outstanding object is dropped could the whole objpool be released β along with the call of objpool_drop. π§ it's literally the last one to leave the party, turning off the lights, locking the door. no cap. the pool cannot go until every single outstanding object has been dropped. that's the rule and she is not flexible about it π
π SEE ALSO π
Kernel file ./include/linux/objpool.h β plus these absolute icons:
struct objpool_slot(9)struct objpool_head(9)objpool_init(9)objpool_pop(9)objpool_push(9)objpool_free(9)objpool_fini(9)
go read them all, they're a whole saga, you'll be obsessed π
okay that's the page!! π sourced from ./include/linux, dated October 2026, and yes it lives at objpool_drop(9) β mwah, go drop some objects responsibly, ily πβ¨π
π¦ 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