component_master_del(9)
π component_master_del(9)
okay so this is from the Kernel API Manual bestie, and it's literally the cleanup queen of the component subsystem β the one you call when the aggregate driver era is over π
β¨ NAME β¨
component_master_del β unregister an aggregate driver π«Ά
πΈ SYNOPSIS πΈ
void component_master_del (struct device *parent , const struct
component_master_ops *ops );
π ARGUMENTS π
parentβ parent device of the aggregate driver πopsβ callbacks for the aggregate driver β¨
π¦ DESCRIPTION π¦
So here's the tea: this function unregisters an aggregate driver that was registered with component_master_add_with_match. Simple, clean, no cap.
And if necessary β like, if it has to happen β the aggregate driver is first disassembled by calling component_master_ops.unbind from ops. So it's not just "bye", it's "bye, but let me take the whole thing apart properly first" π
iconic behaviour honestly.
lowkey important: the teardown ordering is the whole point here. It unbinds first if needed, then unregisters. The manpage says "if necessary", so don't come for me about when it's necessary β that's the kernel's call, not mine π
π SEE ALSO π
- Kernel file
./drivers/base/component.c overview(9)component_compare_of(9)component_release_of(9)component_compare_dev(9)component_compare_dev_name(9)component_match_add_release(9)component_match_add_typed(9)component_master_add_with_match(9)component_unbind_all(9)component_bind_all(9)component_add_typed(9)component_add(9)component_del(9)
like. read the whole component.c family, it's giving "found family" fr fr π
π«Ά okay bye bestie, this page lives in ./drivers/base, the version vibe is October 2026, and the whole thing answers to the name component_master_del(9) β slay, go unregister something responsibly πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms