__e1000e_write_phy_reg_igp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __e1000e_write_phy_reg_igp β€” from the Kernel API Manual, bestie

okay so we're diving into the kernel, specifically the e1000e driver, and this function is literally the one that writes to an igp PHY register. lowkey iconic, highkey niche. let's get into it 🫢


✨ NAME ✨

__e1000e_write_phy_reg_igp β€” writes to an igp PHY register. that's the whole vibe. no cap. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

s32 __e1000e_write_phy_reg_igp (struct e1000_hw *hw , u32 offset , u16 data , bool locked );

it gives you back an s32, so like… check your return value, queen. 🌸


πŸ’– ARGUMENTS πŸ’–

  • hw β€” pointer to the HW structure. it's giving "here's the hardware, do something with it" energy πŸ‘‘
  • offset β€” the register offset you wanna write to. pick your spot ✨
  • data β€” the actual data getting written at that register offset. this is the payload, the main character of the operation πŸŽ€
  • locked β€” a bool that tells you whether the semaphore has already been acquired or not. like, is the door already held open or are we grabbing the handle ourselves πŸ™ˆ

🌈 DESCRIPTION 🌈

so here's the tea β˜•: this function acquires the semaphore if necessary, then writes the data to the PHY register at the offset. and then β€” and this is the responsible part β€” it releases any acquired semaphores before exiting. clean up after yourself, bestie, that's the rule πŸ’…

literally: lock it up if you gotta, do the write, unlock what you locked, leave. periodt.

heads up 🫢: whether it grabs the semaphore depends on that locked argument β€” if it's already been acquired, it won't re-acquire. that's the whole point of passing it in.

πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives right here: ./drivers/net/ethernet/intel/e1000e/phy.c πŸ“

and now the friend group β€” every single one of these, no skips, fr fr:


that's the whole page, bestie πŸ’œ source came from ./drivers/net/ethernet/intel/e... (the path gets truncated in the footer, we don't make the rules 😭), and it's stamped October 2026 β€” so yeah, future-dated and thriving πŸ¦‹βœ¨ ily, go write some registers responsibly! πŸŽ€

πŸ“¦ where this page comes from