tb_drom_read(9)
π tb_drom_read(9) β from the Kernel API Manual, bestie
okay so first of all, hi, welcome to the function page for tb_drom_read. This is a kernel API manual entry, and honestly it's giving "small function, big responsibility" energy, so let's get into it π«Ά
β¨ NAME β¨
tb_drom_read β Copy DROM to sw->drom and parse it πΈ
β¨ SYNOPSIS β¨
int tb_drom_read (struct tb_switch *sw );
β¨ ARGUMENTS β¨
swβ the router whose DROM we're gonna read and parse, like that's literally the whole vibe of this parameter π
β¨ DESCRIPTION β¨
So here's the tea β: this function reads the router DROM, and if that goes well (no cap, "if successful" is doing a lot of heavy lifting there), it parses the entries and populates the fields in sw accordingly. Basically it fills in the blanks on your switch struct, iconic behaviour honestly β¨
And the best part? It can be called for any router generation π Like, no generational gatekeeping here, every router era is welcome at this function's table π
β¨ RETURN β¨
0on success π slay- a negative errno otherwise π not slay, but at least it tells you what went wrong
β¨ SEE ALSO β¨
- Kernel file
./drivers/thunderbolt/eeprom.c tb_drom_read_uid_only(9)β the lite version, iykyk π¦
ngl, if you're poking at DROM parsing at all, you're lowkey doing main character kernel work. obsess. πβ¨
okay that's the whole page, bestie β ta-ta for now! π This one's sourced from ./drivers/thunderbolt and dated October 2026, so mark your calendars and stay hydrated πππ§
π¦ 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