tb_cfg_request_get(9)
π tb_cfg_request_get β Kernel API Manual β¨
Okay bestie, listen up, because this one is short but it matters. This is tb_cfg_request_get, straight out of the kernel API manual, and yeah β it's a one-liner function, but it's carrying the whole refcount economy on its back. π
πΈ NAME πΈ
tb_cfg_request_get β increase the refcount of a request. That's it. That's the whole job. She's an icon, she's a legend, she does one thing and she does it flawlessly. β¨
π SYNOPSIS π
void tb_cfg_request_get (struct tb_cfg_request *req);
Notice the void?? Nothing comes back. No return value. No exit status. She just does the thing and leaves. main character energy, honestly. π
π¦ ARGUMENTS π¦
reqβ the request whose refcount gets increased. That's the one. Hand her the request, she bumps the count, everyone goes home happy. π«Ά
Ngl, that's the only argument. One param. Zero drama. Refcount goes up, no cap. π₯
π SEE ALSO π
If you're the kind of girl who reads the whole friend group's lore (and you should), here's the whole squad β all of these live in the kernel file ./drivers/thunderbolt/ctl.c:
struct tb_ctl(9)β the struct everything orbits around πͺtb_cfg_request_alloc(9)β where requests are born πΆtb_cfg_request_put(9)β the opposite of this page, she decreases the refcount, they're literally yin and yang πtb_cfg_request(9)tb_cfg_request_cancel(9)β for when you gotta call it off πtb_cfg_request_sync(9)tb_ctl_alloc(9)tb_ctl_free(9)tb_ctl_start(9)tb_ctl_stop(9)tb_cfg_ack_notification(9)tb_cfg_ack_plug(9)πtb_cfg_reset(9)β fresh start, we love a resettb_cfg_read_raw(9)tb_cfg_write_raw(9)tb_cfg_get_upstream_port(9)
Like, go read them. It's giving "required reading for the Thunderbolt girlies." πβ¨
π Real talk though: if you're calling this, make sure you know who's holding what β refcounts are serious business even when the manpage is one sentence long.
That's the whole page, bestie, we ate and left no crumbs π β brought to you by the kernel docs living in ./drivers/thunderbolt, dated October 2026, in the Kernel API Manual. 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