oa_tc6_read_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– oa_tc6_read_register(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a little function from oa_tc6.c and it's literally the "read one single register" girlie πŸŽ€


✨ NAME ✨

oa_tc6_read_register β€” the function for reading a MAC-PHY register. that's it, that's the whole job πŸ’…


🌸 SYNOPSIS 🌸

int oa_tc6_read_register (struct oa_tc6 *tc6 , u32 address , u32 *value );

three args, one int coming back at you. no cap. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • tc6 β€” the oa_tc6 struct. your main character struct, she's the whole context fr fr 🫢
  • address β€” the register address of the MAC-PHY that's about to get read. like, which register are we reading, bestie πŸ‘€
  • value β€” the value that gets read out of that register at address on the MAC-PHY. this is where the tea gets stored πŸ“

⭐ RETURN ⭐

0 on success, otherwise failed. that's the vibe check β€” zero is slay, anything else is a πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/ethernet/oa_tc6.c β€” and the whole friend group:

like, the read function's entire inner circle. iykyk πŸ’œ


ok real talk: read it, write it, init it, exit it β€” they all live in ./drivers/net/ethernet/oa_tc6.c and they all reference each other. go say hi 🌈

and that's the page, bestie! 🌸 source/version lives at ./drivers/net/ethernet, dated October 2026, and the header/footer both say oa_tc6_read_register(9) β€” she said her own name twice because she's iconic like that πŸ‘‘ ✨ πŸŽ€

πŸ“¦ where this page comes from