ksz8_ind_read8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, register 110. that's her whole personality, ok?
  • addr β€” indirect access control, register 111. 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 ✨

  • 0 on 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:

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