__fw_devlink...ng_consumers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, you clicked into a kernel API page, and yes the manual name is literally Kernel API Manual β€” we're in the big leagues now. this one is a function in ./drivers/base/core.c and it's lowkey about rescuing "dangling consumers" from being orphaned, which honestly? main character energy. let's get into it 🫢


🌸 NAME 🌸

__fw_devlink_pickup_dangling_consumers β€” Pick up dangling consumers, fr fr. that's the whole vibe check of this function πŸ’–


✨ SYNOPSIS ✨

void __fw_devlink_pickup_dangling_consumers (struct fwnode_handle
*fwnode , struct fwnode_handle *new_sup );

she takes two struct fwnode_handle * args and returns void, so like… no return value, no notes, she just does the thing and dips πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • fwnode β€” the fwnode you're picking dangling consumers up from. like, this is the one being examined, bestie πŸ¦‹
  • new_sup β€” the fwnode of the new supplier. the glow-up destination, iykyk πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• and the logic is genuinely iconic:

if the fwnode has a corresponding struct device and that device supports probing β€” and yes, that means it's been added to a bus β€” then we want to let fw_devlink create MANAGED device links to this device. so in that case? leave fwnode and its descendant's fwnode links alone. hands off. she's fine. don't touch πŸ’€

otherwise, you move its consumers over to the new supplier, new_sup. no cap, that's the whole move β€” dangling consumers get picked up and re-homed 🌈

ngl this is exactly the kind of "if you're properly attached to a bus, you're self-sufficient; otherwise come here little orphan" energy we love to see πŸ₯Ί

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, and yes there's a lot of them β€” every single one, no skipping 🌸:

and the source file for all of this drama is the Kernel file ./drivers/base/core.c 🧚


⭐ sign-off ⭐

that's the page, bestie β€” sourced from ./drivers/base, dated October 2026, and the header/footer both spell the name as __fw_devlink...ng_consumers(9) because the man page formatter was being a little dramatic with the truncation πŸ’€ slay either way, you understood it, and that's what matters πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from