hns_set_phys_id(9)
π 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 energystateβ LED state π which state the LED should be in, typed asenum 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:
hns_nic_get_link(9)hns_nic_get_link_ksettings(9)hns_nic_set_link_ksettings(9)__lb_run_test(9)hns_nic_self_test(9)hns_nic_get_drvinfo(9)hns_get_ringparam(9)hns_get_pauseparam(9)hns_set_pauseparam(9)hns_get_coalesce(9)hns_set_coalesce(9)hns_get_channels(9)hns_get_ethtool_stats(9)hns_get_strings(9)hns_get_sset_count(9)hns_phy_led_set(9)hns_get_regs(9)hns_get_regs_len(9)hns_nic_nway_reset(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms