lwmi_cd_sub_master_bind(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lwmi_cd_sub_master_bind(9) β€” from the Kernel API Manual, bestie ✨

Okay so this is a page from the Kernel API Manual, and we're talking about lwmi_cd_sub_master_bind β€” the function that binds the sub-component of a sub-master device. Sound confusing? It's not, I promise. Let's go 🫢


🌸 NAME 🌸

lwmi_cd_sub_master_bind β€” literally just binding the sub-component of a sub-master device. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

int lwmi_cd_sub_master_bind (struct device *dev );

One function, one argument, one int coming back at you. Iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the sub-master capdata basic device. That's the one being handed over, bestie, no cap.

πŸ”₯ DESCRIPTION πŸ”₯

So here's what goes down: it calls component_bind_all to bind the sub-component device to the sub-master device. Simple as that. ✨

And if that goes well? On success, it collects the pointer to the sub-component list and tries to call the master callback. Like, it tries β€” that's what the manpage says, so that's what we're telling you. πŸ‘‘


πŸ’– RETURN πŸ’–

0 on success β€” slay β€” or an error code. That's it. If you get a 0, you ate. πŸ“


🧚 SEE ALSO 🧚

Kernel file ./drivers/platform/x86/lenovo/wmi-capdata.c β€” go read it, iykyk πŸ’œ

And the whole squad:


ngl bestie, the whole family lives under ./drivers/platform/x86/lenovo β€” that's the main character directory right there. 🌈

Okay that's the whole page, mwah πŸ’‹ β€” brought to you by ./drivers/platform/x86/lenovo, dated October 2026. Periodt. πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from