ksz8_ind_read8(9)
π ksz8_ind_read8(9) β a Kernel API Manual moment
okay so bestie, welcome to ksz8_ind_read8(9), straight out of the Kernel API Manual, and no cap this one is a little baddie of a function π like it's not doing the most, but it's doing exactly what it needs to, and honestly? iconic.
β¨ NAME β¨
ksz8_ind_read8 β the EEE/ACL/PME indirect register read πΈ
yes girl. three whole switch functionalities in one little read. she's versatile.
β¨ SYNOPSIS β¨
int ksz8_ind_read8 (struct ksz_device *dev , u8 table , u16 addr , u8 *val );
it's giving "four arguments, zero drama" π
β¨ ARGUMENTS β¨
devβ the device structure. your main character struct, the whole vibe check happens through her π«Άtableβ function & table select, register110. that's her whole personality, ok?addrβ indirect access control, register111. the address, the coordinates, the "where we at" πvalβ the value read. this is where the answer lands, so likeβ¦ pay attention to her β¨
β¨ DESCRIPTION β¨
so what she does, bestie: this function performs an indirect register read for EEE, ACL or PME switch functionalities π₯ that's the whole job, and she does it flawlessly.
the mechanics? both 8-bit registers 110 and 111 are written at once with ksz_write16, using the serial multiple write functionality. the way that she justβ¦ writes two registers in one go π efficiency queen. periodt.
β¨ RETURN β¨
0on success π- or an error code on failure π
that's it. that's the return section. short, sweet, honest. we respect her for it.
β¨ SEE ALSO β¨
okay this list is long, so buckle up bestie, we're going shopping ποΈ
Kernel file ./drivers/net/dsa/microchip/ksz8.c, plus:
ksz8_ind_write8(9)ksz879x_get_loopback(9)ksz879x_set_loopback(9)ksz8_r_phy_ctrl(9)ksz8_r_phy_bmcr(9)ksz8_w_phy_ctrl(9)ksz8_w_phy_bmcr(9)ksz88x3_tc_ets_add(9)ksz88x3_tc_ets_del(9)ksz8_phy_port_link_up(9)ksz8_cpu_port_link_up(9)ksz88x3_drive_strength_write(9)ksz8_parse_drive_strength(9)
look at that friend group!! the whole microchip crew showed up π¦ iykyk.
lowkey a reminder from your girl: this is the read one. ksz8_ind_write8(9) is her sibling and she's linked above, don't mix them up π
and that's the page!! sign-off time π this lil masterpiece lives in ./drivers/net/dsa/microchip, and the version/date stamp on it is October 2026 β so like, future girlie energy. mwah, slay, go read some indirect registers π
π¦ 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