tb_drom_read_uid_only(9)
π tb_drom_read_uid_only β the Kernel API Manual, but make it cute (section 9) β¨
okay bestie, so this one's a kernel function from the <pink>Kernel API Manual</pink> β literally the whole energy is "read the UID straight from the DROM, no shortcuts, no vibes cached from before." it's giving main-character energy for resume-time identity checks π
β¨ NAME β¨
tb_drom_read_uid_only β read the UID directly from the DROM π
πΈ SYNOPSIS πΈ
int tb_drom_read_uid_only (struct tb_switch *sw , u64 *uid );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
swβ the router whose UID you're trying to read π«Άuidβ and this is where the UID gets placed. that's it. that's the spot β¨
π DESCRIPTION π
so here's the tea: this function does not use the cached copy in sw->drom. nope, not today. it goes and reads it fresh, direct, no middleman π
and why do we care? because it's used during resume to check switch identity. like when your router wakes back up and everyone's like "wait. is that still you??" and the kernel needs to be fr fr sure ππ
β RETURN β
0on success β slay, we ate π- negative
errnootherwise β not slay, something went sideways π
π SEE ALSO π
- the kernel file
./drivers/thunderbolt/eeprom.cπ tb_drom_read(9)β the sibling function, iykyk π§
alright bestie, that's the page! this little cutie lives in ./drivers/thunderbolt, it's dated October 2026, and it's filed under the Kernel API Manual as tb_drom_read_uid_only(9) β go forth and read those UIDs directly, periodt ππβ¨
π¦ 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