class_compat_remove_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 🫢:

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