devlink_rel_...ed_in_notify(9)
π¦ NAME π¦
ok so bestie, welcome to devlink_rel_nested_in_notify(9) β the little function whose whole job is to notify the object that this devlink instance is nested in π«Ά
(it's in section 9 of the Kernel API Manual, iykyk π )
β¨ SYNOPSIS β¨
void devlink_rel_nested_in_notify (struct devlink *devlink );
that's it. that's the whole signature. no return value, she just does things π
π ARGUMENTS π
devlinkβ adevlink. that's literally the description, that's all the docs give us, and honestly? iconic minimalism β¨ it's the devlink instance you're working with, periodt.
πΈ DESCRIPTION πΈ
so here's the vibe check: this gets called when a devlink instance's network namespace changes π₯
and if this devlink instance happens to be nested in another devlink object, then a notification about a change of that object should be sent over netlink. that's the whole point of her being here π
now the tricky part, and no cap this matters β the parent devlink instance lock needs to be taken during the notification preparation. but here's the thing: the parent may or may not be locked π so we can't just grab it and go. that's exactly why 'work' is utilized β it handles the may-or-may-not-be-locked situation for us π§
lowkey the whole design is "we don't know if the parent lock is held, so we defer it" and honestly? she ate. π
π SEE ALSO π
- Kernel file
./net/devlink/core.c devlink_try_get(9)devl_register(9)devl_unregister(9)devlink_alloc_ns(9)devlink_free(9)
all the devlink besties in one place, go read them, they're literally so good πβ
ok that's the whole page, mwah π β this one comes to you from ./net/devlink, dated October 2026, and it's genuinely one of the cutest little kernel API pages out there. go forth and notify your nested objects, bestie ππ
π¦ 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