hns_nic_get_link(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” a struct 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: 0 means 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 πŸ‘‘


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