class_compat_remove_link(9)
π class_compat_remove_link(9) β a Kernel API Manual moment π
okay so bestie, welcome to the glow-up era of class_compat_remove_link(9), live from the Kernel API Manual. this one is short and sweet and honestly it's giving "small function, big cleanup energy" β¨
β¨ NAME β¨
class_compat_remove_link β removes a compatibility class device link to a bus device π«Ά
like, it's the un-linkening. the "we're done here" of links. no cap.
πΈ SYNOPSIS πΈ
void class_compat_remove_link (struct class_compat *cls , struct device
*dev );
bestie it returns void, so there's literally nothing to check. no return value, no drama, no notes. π
π¦ ARGUMENTS π¦
clsβ the compatibility class. yes, that compatibility class πdevβ the target bus device. the one we're removing the link for, main character energy π
π SEE ALSO π
the kernel file is ./drivers/base/class.c, and here's the whole friend group π«Ά:
class_to_subsys(9)class_create(9)class_destroy(9)class_dev_iter_init(9)class_dev_iter_next(9)class_dev_iter_exit(9)class_for_each_device(9)class_find_device(9)class_compat_register(9)class_compat_unregister(9)class_compat_create_link(9)class_is_registered(9)
like, class_compat_create_link(9) is literally the icon that makes the link, and this page is the one that removes it. they're a duo, iykyk π
and that's the whole page, bestie β compliments to ./drivers/base, dated October 2026, signed sealed and slayed by the class_compat_remove_link(9) girlies πβ¨π
π¦ 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