hns_nic_get_link(9)
π hns_nic_get_link(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this is the tiny little page for hns_nic_get_link, and honestly? it's giving "small but mighty." no cap.
πΈ NAME πΈ
hns_nic_get_link β get current link status π¦
like, it literally goes and fetches the current link status for you. that's the whole vibe. main character energy, zero drama.
β¨ SYNOPSIS β¨
u32 hns_nic_get_link (struct net_device *net_dev );
that's it. that's the function. one argument, returns a u32, we love a simple signature π«Ά
π ARGUMENTS π
net_devβ astruct net_device *, aka the network device you're asking about. and look, the original page describes it as "net_device retuen 0 - success , negative --fail" (yes,retuenβ we are not fixing the typo, we are respecting the era π). so the deal is:0means success, and a negative value means fail. that's the whole contract, fr fr.
lowkey obsessed with how the "returns" bit got folded into the argument description here. iconic manpage choice. we keep it, we love it, we don't question it π
π SEE ALSO π
the full friend group, no one left behind π
- Kernel file:
./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 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_set_phys_id(9)hns_get_regs(9)hns_get_regs_len(9)hns_nic_nway_reset(9)
and that's the whole page, bestie!! π§ run it, love it, check that link status π
sign-off time: this little beauty lives at ./drivers/net/ethernet/hisilic... (the footer truncates it, not me, blame the footer π) and it's dated October 2026 β future icon behavior, honestly. mwah πβ¨
π¦ 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