set_secondary_fwnode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– set_secondary_fwnode(9) πŸ’–

okay bestie, welcome to the set_secondary_fwnode page, straight out of the Kernel API Manual ✨ this one's short and sweet, so grab your iced coffee and let's go πŸ“


🌸 NAME 🌸

set_secondary_fwnode β€” literally just changes the secondary firmware node of a device you hand it. that's the whole gig πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void set_secondary_fwnode (struct device *dev , struct fwnode_handle *fwnode );

no return value, it's a void situation, she just does the thing and leaves πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device you're handling. the main character of this function, the one getting a new secondary node 🫢
  • fwnode β€” the new secondary firmware node for that device. the shiny new accessory ✨

🌈 DESCRIPTION 🌈

here's the vibe check, and it's honestly a little "it depends" moment:

  • if the device already has a primary firmware node, then this function sets that primary node's secondary pointer to fwnode β€” like giving the primary node a plus-one πŸ’ž
  • otherwise (no primary node present), it sets the device's own firmware node pointer to fwnode instead. no primary? then fwnode takes the spotlight directly 🌟

that's it. that's the whole description. short king behavior, no cap 😭

ngl there's no return value and no error list here, so no surprises lurk in the shadows β€” but remember the branch above, because which pointer gets written totally depends on whether a primary firmware node exists πŸ’€

⭐ SEE ALSO ⭐

buckle up bestie, this list is LONG and it's giving "family reunion group chat" 😭 every single one of these is in the kernel file ./drivers/base/core.c:

also yes, set_primary_fwnode(9) is right there in the list β€” her sister function, go read that one next, iykyk πŸ‘€


okay that's the whole page, you ate that 🫢 this gem lives under the path ./drivers/base, the version stamp says October 2026, and the page signs itself set_secondary_fwnode(9) at the bottom like a little autograph πŸ’œ mwah, go forth and set those secondary firmware nodes, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from