class_compat_create_link(9)
β¨ class_compat_create_link(9) β¨
okay so bestie, this one lives in the Kernel API Manual and it's lowkey iconic β it's all about making a compatibility class device link to a bus device. fr fr, that's the whole vibe. π¦
π NAME π
class_compat_create_link β create a compatibility class device link to a bus device
πΈ SYNOPSIS πΈ
int class_compat_create_link (struct class_compat *cls , struct device *dev );
π ARGUMENTS π
clsβ the compatibility class πdevβ the target bus device β¨
bestie that's literally it, two arguments, no cap, go off π
π§ SEE ALSO π§
Kernel file ./drivers/base/class.c plus 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_remove_link(9)class_is_registered(9)
and that's the whole page, main character energy from start to finish ππ
sign-off time: this cutie comes to you from ./drivers/base, dated October 2026, and it's class_compat_create_link(9) β periodt, iykyk π
π
π¦ 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