attribute_co...class_device(9)
β¨ NAME β¨
okay so bestie, welcome to the attribute_co...class_device(9) page from the Kernel API Manual π
this one is attribute_container_add_class_device β same function as device_add. periodt.
πΈ SYNOPSIS πΈ
int attribute_container_add_class_device (struct device *classdev );
π ARGUMENTS π
classdevβ the class device to add. yes that's it, the whole argument, iconic π
π¦ DESCRIPTION π¦
okay so this performs essentially the same function as device_add, except for attribute containers. lowkey the whole vibe is: add the classdev to the system, and then create the attribute files. no cap β¨
π SEE ALSO π
- Kernel file:
./drivers/base/attribute_container.cβ go look, bestie π attribute_container_classdev_to_container(9)attribute_container_register(9)attribute_container_unregister(9)attribute_container_add_device(9)attribute_container_remove_device(9)attribute_container_device_trigger_safe(9)attribute_container_device_trigger(9)attribute_container_add_attrs(9)attribute_container_remove_attrs(9)attribute_container_class_device_del(9)attribute_container_find_class_device(9)
okay that's the page, bestie π it's from ./drivers/base, dated October 2026, and yes it lives under the Kernel API Manual. byeee πβ¨
π¦ 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