attribute_co...vice_trigger(9)
β¨ attribute_container_device_trigger β¨
okay so this is a page from the Kernel API Manual, bestie, and we're talking about attribute_container_device_trigger β the little function that goes through and fires off a trigger for every single classdev that matches π―
πΈ NAME πΈ
attribute_container_device_trigger β literally execute a trigger for each matching classdev, that's the whole vibe π
π¦ SYNOPSIS π¦
void attribute_container_device_trigger (struct device *dev , int
(*fn)(struct attribute_container *, struct device *, struct device *) );
like, it returns void and takes a device plus a function pointer. simple queen behaviour β¨
π ARGUMENTS π
devβ the generic device you're running the trigger for, like the main character of this whole operation πfnβ the function to execute for each classdev. it's a function pointer, so it getsstruct attribute_container *,struct device *, and anotherstruct device *. yeah, it eats three args, she's hungry π
π DESCRIPTION π
so here's the tea: this function is for executing a trigger when you need to know both the container and the classdev. both. not one. not the other. both. it's giving "i want it all" energy and honestly? respect π«Ά
no cap, that's the entire thing β you call it, it runs your fn across each matching classdev, and you get the container and the classdev handed to you. iconic π₯
π SEE ALSO π
- the kernel file itself, live and in person:
./drivers/base/attribute_container.cπ 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)β yes, there's a safe one, go look, iykyk πattribute_container_add_attrs(9)attribute_container_add_class_device(9)attribute_container_remove_attrs(9)attribute_container_class_device_del(9)attribute_container_find_class_device(9)
all her sisters, all slaying in their own lanes π¦π
and that's a wrap, bestie π this little page lives under ./drivers/base and was dated October 2026 β go forth and trigger responsibly, mwah πβ¨
π¦ 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