tc_register_driver(9)
β¨ tc_register_driver(9) β¨
okay so this is a page straight out of the Kernel API Manual, section 9, and it's about tc_register_driver β the lil function that puts your brand-new TC driver on the map π
no cap, it's a short one, so grab a boba and let's go π§
πΈ NAME πΈ
tc_register_driver β register a new TC driver π
π¦ SYNOPSIS π¦
int tc_register_driver (struct tc_driver *tdrv );
π ARGUMENTS π
tdrvβ bestie, the manpage literally says -- undescribed -- π like the docs said "you already know" and moved on. It's thestruct tc_driver *you're handing over (that part's right there in the synopsis, okurrr), but the official description slot is empty. Not me reading a blank field π
π₯ DESCRIPTION π₯
So what it does, fr fr: it adds the driver structure to the list of registered drivers πβ¨ that's the whole job. Main character energy, minimal effort, iconic.
It returns a negative value on error, otherwise 0 β so 0 is your slay β
and anything negative is your uh-oh π
And here's the important bit, don't skip it π: if no error occurred, the driver remains registered even if no device was claimed during registration. Like it's on the list now, periodt. No device matched? Doesn't matter, it's still registered. That's the vibe, that's the contract π
π SEE ALSO π
- Kernel file
./drivers/tc/tc-driver.cβ go read the source, iykyk π tc_unregister_driver(9)β the "jk bestie, take it back off the list" one π«Άtc_match_device(9)tc_bus_match(9)
and that's the whole page!! short and sweet, just like us π
cute lil sign-off π this one lives under ./drivers/tc, it's dated October 2026, and yes β it's tc_register_driver(9) all the way through, header to footer. bye bestie, go register some drivers πβ¨
π¦ 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