lwmi_cd_sub_master_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay bestie, this page is lwmi_cd_sub_master_add(9) from the Kernel API Manual β€” and it’s literally about registering a sub-master with its sub-component. Slay. ✨

🌸 SYNOPSIS 🌸

int lwmi_cd_sub_master_add (struct lwmi_cd_priv *priv , enum
       lwmi_cd_type sub_component_type );

πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” Pointer to the sub-master capdata device private data. It’s giving β€œhand me the private-data bag, bestie.” 🫢
  • sub_component_type β€” Type of the sub-component. Yep, that’s the whole vibe. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the tea: this function matches the sub-component type and registers the current capdata device as a sub-master. Main character registration moment, honestly. πŸ‘‘

If the given sub-component type is CD_TYPE_NONE, it marks the sub-component as non-existent without registering the sub-master. No cap, no fake registration. πŸ’€

⭐ RETURN ⭐

  • 0 on success, or an error code. That’s it. That’s the return. Periodt. πŸ’–

🌈 SEE ALSO 🌈


Signed off with maximum sparkle from the ./drivers/platform/x86/lenovo source vibe, dated October 2026, for lwmi_cd_sub_master_add(9) β€” mwah. πŸŽ€πŸ’œ

πŸ“¦ where this page comes from