phy_interrupt_is_valid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_interrupt_is_valid β€” from the Kernel API Manual bestie πŸŽ€

okay so imagine you're deep in the kernel, poking at a PHY, and you just need to know one tiny thing: is this thing's irq actually a real irq or not. that's the whole job. that's the vibe. ✨


🌸 NAME 🌸

phy_interrupt_is_valid β€” a lil convenience function for testing a given PHY irq. yes it's literally just a check, and yes it's still important, don't @ me 🫢


✨ SYNOPSIS ✨

bool phy_interrupt_is_valid (struct phy_device *phydev );

it's giving "returns a bool, takes one pointer, minds its own business" πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • phydev β€” the struct phy_device you're asking about. that's it. that's the whole argument list. one (1) boyfriend, no cap.

πŸ¦‹ NOTE πŸ¦‹

⚠️ bestie listen to me. this function must be kept in sync with addition/removal of PHY_POLL and PHY_MAC_INTERRUPT. so if you go messing with those, you gotta come back here and update this too. no leaving it on read. fr fr 😀

🌈 SEE ALSO 🌈

the whole friend group πŸ’œ β€” plus Kernel file ./include/linux/phy.h for the enums and structs:


and that's the page!! sourced from ./include/linux, dated October 2026, brought to you by the Kernel API Manual β€” slay, read it, cite it, go touch some grass (or a PHY) πŸ’…πŸ’–πŸŒ·

πŸ“¦ where this page comes from