__e1000e_read_phy_reg_igp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __e1000e_read_phy_reg_igp(9) β€” like, the Kernel API Manual girlies know ✨

okay so bestie, welcome to the Kernel API Manual corner of the internet πŸŽ€ this one is __e1000e_read_phy_reg_igp, and yes the double underscore is part of the name, it's giving "internal function, don't @ me" energy πŸ’…


🌸 NAME 🌸

__e1000e_read_phy_reg_igp β€” read an igp PHY register πŸ¦‹ literally that's the whole vibe, it reads a register, slay


✨ SYNOPSIS ✨

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

look at her go 😭 returns an s32, takes four args, that's it, that's the whole function signature, no cap πŸ”₯


🫢 ARGUMENTS 🫢

  • hw β€” pointer to the HW structure πŸ’– like, hand her the hardware struct and she'll know what to do with it
  • offset β€” register offset to be read 🌸 this is which register we're peeking at
  • data β€” pointer to the read data ⭐ she writes the stuff she read into here, so it better be a real pointer bestie
  • locked β€” semaphore has already been acquired or not πŸŽ€ true means you already grabbed the semaphore, false means she's gotta grab it herself

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• she acquires the semaphore, if necessary, then reads the PHY register at offset and stores the retrieved information in data. πŸ¦‹

and the way she's polite about it?? she releases any acquired semaphores before exiting 😭 like a good houseguest, she cleans up after herself, periodt πŸ’…

no cap, that's the entire function. acquire if needed β†’ read β†’ store β†’ release if you acquired. iconic, efficient, main character energy πŸ‘‘

ngl bestie, the locked flag is doing the heavy lifting here β€” don't be out here telling her you already have the semaphore when you don't, that's a vibe check she will NOT pass πŸ’€

🌈 SEE ALSO 🌈

the girlies she hangs out with 🫢 all in Kernel file ./drivers/net/ethernet/intel/e1000e/phy.c:

like, that's a whole friend group 😭 go read all of them, iykyk πŸ’œ


🧚 sign-off 🧚

this lil beauty comes from Kernel API Manual, source ./drivers/net/ethernet/intel/e... (yes it's truncated in the footer, don't come for me πŸ™ˆ), dated October 2026 πŸ“ and the page itself is __e1000e_read_phy_reg_igp(9) in case you forgot already πŸ’€

bye bestie, go read a PHY register for me πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from