lwmi_cd_match_add_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lwmi_cd_match_add_all(9) β€” Kernel API Manual, bestie πŸ’–

okay so welcome to the Kernel API Manual page for lwmi_cd_match_add_all(9), and she is serving β€œadd all the match rules for the master driver” realness. no cap, this one’s a tiny function with big component-match energy 🫢


🌸 NAME 🌸

lwmi_cd_match_add_all β€” Add all match rule for the master driver. periodt. πŸ’…

✨ SYNOPSIS ✨

void lwmi_cd_match_add_all (struct device *master , struct
       component_match **matchptr );

πŸŽ€ ARGUMENTS πŸŽ€

  • master β€” pointer to the master device. that’s the main-character device in this situation πŸ‘‘
  • matchptr β€” pointer to the returned component_match pointer. yes bestie, a pointer to a pointer; the matching list lives through it πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what she does: lwmi_cd_match_add_all adds all component matches to the list stored in matchptr for the master device. it’s giving β€œcollect every match, put them in the list, done” ✨

⚠️ real talk: matchptr must be initialized to NULL. this is not a vibe-check-optional situation; initialize it to NULL, bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/platform/x86/lenovo/wmi-capdata.c


and that’s the whole page, bestie 🫢 signed off with source/version ./drivers/platform/x86/lenovo and date October 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from