e1000e_write_phy_reg_bm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… e1000e_write_phy_reg_bm πŸ’…

okay bestie, welcome to the Kernel API Manual β€” yes that's the whole vibe, we're in kernel-land now, and this little cutie is e1000e_write_phy_reg_bm. say hi πŸ‘‹


✨ NAME ✨

e1000e_write_phy_reg_bm β€” Write BM PHY register. that's it, that's the function, and it's giving "I write registers and I do it fabulously" πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

s32 e1000e_write_phy_reg_bm (struct e1000_hw *hw , u32 offset , u16 data
);

like, look at that signature. three args, one return, zero notes πŸŽ€


🌸 ARGUMENTS 🌸

  • hw β€” pointer to the HW structure. that's your hardware bestie, the whole context, she's the main character here πŸ‘‘
  • offset β€” register offset to write to. literally where you're dropping the data πŸ“
  • data β€” data to write at register offset. the payload, the moment, the actual thing being written πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea 🍡 β€” this function acquires the semaphore, if necessary, and then writes the data to the PHY register at the offset. then it releases any acquired semaphores before exiting, because we do NOT leave the lock held, no cap, that's just rude πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/net/ethernet/intel/e1000e/phy.c β€” go read the source, iykyk πŸ’€

and now the whole friend group, because this function has SO many mutuals 🫢:

like i said. enormous friend group. everyone knows everyone 🫢✨


okay that's the whole page bestie, mwah πŸ’‹

this iconic little number came out of ./drivers/net/ethernet/intel/e... and dropped October 2026, respectfully, and it's part of the Kernel API Manual β€” and yes, e1000e_write_phy_reg_bm(9) gets the last word. slay πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from