hns_set_phys_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hns_set_phys_id(9) πŸ’–

okay so real talk, this is a page straight out of the Kernel API Manual and it's honestly serving the tiniest little function ever, but she's important!! this is the one that makes the physical identify LED do its thing on hns NICs ✨ like when you're standing in a datacenter with 400 identical cables and you need that one box to blink at you. iconic behavior honestly 🫢


✨ NAME ✨

hns_set_phys_id β€” set phy identify LED πŸ’‘

like, that's it, that's the whole job. she sets the PHY identify LED. no cap.


πŸŽ€ SYNOPSIS πŸŽ€

int hns_set_phys_id (struct net_device *netdev , enum
       ethtool_phys_id_state state );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • netdev β€” net device πŸ‘‘ the actual network device struct we're messing with, main character energy
  • state β€” LED state 🌈 which state the LED should be in, typed as enum ethtool_phys_id_state

🌸 DESCRIPTION 🌸

okay so the entire description is literally one sentence and I'm not gonna pad it bestie, that would be lying:

Return 0 on success, negative on failure. periodt. πŸ’…


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives at ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c β€” go read her, she's the source of truth 🧚

and here's the whole friend group, all the sibling functions in the same little hns ethtool clique:


ngl the source path in the footer got truncated to ./drivers/net/ethernet/hisilic... on the original page, so if you're hunting for the file, just remember it's the hns ethtool one up above πŸ”₯ don't come for me, I'm just reporting what the page said πŸ™ˆ

and that's the whole page bestie!! mwah πŸ’‹ this was October 2026 energy, straight from the Kernel API Manual, hns_set_phys_id(9) edition β€” go make something blink πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from