tb_xdomain_alloc_in_hopid(9)
β¨ tb_xdomain_alloc_in_hopid (9) β Kernel API Manual β¨
Okay so bestie, welcome to the Kernel API Manual, grab a lil snack π because we're about to talk about allocating an input HopID for tunneling. Yes, that's the NAME, and yes, it's exactly as iconic as it sounds π
π SYNOPSIS
int tb_xdomain_alloc_in_hopid (struct tb_xdomain *xd , int hopid );
Literally that's the whole signature. Look at it. Gorgeous. No notes π₯
π ARGUMENTS
xdβ the XDomain connection, your main character in this whole operation πhopidβ your preferred HopID, or you can pass-1and let the kernel pick the next available one for you, king behaviour honestly π
π¦ DESCRIPTION
So here's the tea β: the HopID you get back is guaranteed to be within the range supported by the input lane adapter. Like, it's not gonna hand you something out of range, no cap. Fr fr.
And when you're done with it? You gotta call tb_xdomain_release_in_hopid to release the allocated HopID. Don't just leave it lying around, that's not the vibe π
Bestie please remember the release call. Allocated resources don't clean themselves up, iykyk π
β RETURN
- Allocated HopID β on success π slay, you got one!
-ENOSPCβ when there are literally no more available HopIDs left π it's giving empty shelf energy- Negative errno β some other error happened, check the errno and see what's up π«Ά
π SEE ALSO
Kernel file ./drivers/thunderbolt/xdomain.c, plus the whole friend group:
tb_xdomain_response(9)tb_xdomain_request(9)tb_register_protocol_handler(9)tb_unregister_protocol_handler(9)tb_register_service_driver(9)tb_unregister_service_driver(9)tb_service_properties_changed(9)tb_xdomain_alloc(9)tb_xdomain_add(9)tb_xdomain_remove(9)tb_xdomain_unregister(9)tb_xdomain_lane_bonding_enable(9)tb_xdomain_lane_bonding_disable(9)tb_xdomain_alloc_out_hopid(9)tb_xdomain_release_in_hopid(9)tb_xdomain_release_out_hopid(9)tb_xdomain_enable_paths(9)tb_xdomain_disable_paths(9)tb_xdomain_find_by_uuid(9)tb_xdomain_find_by_link_depth(9)tb_xdomain_find_by_route(9)tb_register_property_dir(9)tb_unregister_property_dir(9)
And that's the page, bestie! π§ This came out of ./drivers/thunderbolt and it's dated October 2026 β mwah, love that for us ππ
π¦ 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