anon_transp...ass_register(9)
πΈ NAME
anon_transport_class_register β bestie, this is the one that registers an anonymous class π
(this page lives in the Kernel API Manual, and the header up top is stylin' it as anon_transp...ass_register(9) β she's long, she got clipped, it's fine π)
β¨ SYNOPSIS
void anon_transport_class_register (struct anon_transport_class *atc );
π«Ά ARGUMENTS
atcβ the anon transport class you wanna register. that's her. that's the one π¦
π DESCRIPTION
okay so picture this: the anonymous transport class is literally holding two things at once β a transport class and a container. multitasking icon π
but here's the whole ~vibe~ of the anonymous class: she never actually has any device attributes associated with her (and honestly? that saves on container storage, we love an efficient queen π). so the only thing she can be used for is triggering events. that's it. that's her whole job. main character energy but make it a single purpose β¨
so what you gotta do is: prezero first π§, and then use DECLARE_ANON_TRANSPORT_CLASS to initialise the anon transport class storage. no skipping steps, no cap π
ngl, don't try to get device attributes out of her β she doesn't have any, that's the entire point of the "anonymous" thing π
π₯ SEE ALSO
- Kernel file
./drivers/base/transport_class.cπ transport_class_register(9)transport_class_unregister(9)anon_transport_class_unregister(9)transport_setup_device(9)transport_add_device(9)transport_configure_device(9)transport_remove_device(9)transport_destroy_device(9)
she's got a whole friend group, fr fr π
okay that's the page!! π source lives over at ./drivers/base, dated October 2026, and yep the footer is still repping anon_transp...ass_register(9) because she's iconic like that β mwah, go register something π
π¦ 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