hns_get_channels(9)
π hns_get_channels(9) β the kernel API manual, bestie edition π
okay so real talk: this is a section-9 kernel page, one of those <pink>hns_get_channels(9)</pink> ones, and it is tiny β like, two-argument tiny. let's get into it β¨
πΈ NAME πΈ
hns_get_channels β literally just: get channel info. that's the whole vibe. it gets the channel info. no notes. π
π¦ SYNOPSIS π¦
void hns_get_channels (struct net_device *net_dev , struct
ethtool_channels *ch );
yes bestie, that's the exact signature, line break and all β void return, nothing comes back, it just fills your stuff in. π«Ά
β¨ ARGUMENTS β¨
net_devβ the net device. your nic. the main character of this whole operation πchβ channel info. this is the thing that gets the info. the receptacle. the blessed little struct. π
ngl that's the entire argument list. two things. iconic minimalism tbh.
π₯ SEE ALSO π₯
okay this is where it pops off β the whole hns ethtool friend group, plus the source file itself:
Kernel file ./drivers/net/ethernet/hisilicon/hns/hns_ethtool.c
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_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)
fr fr go read all of them, they're the squad π
aaaand that's the page!! short and sweet, just like this one. π
cute lil sign-off: this one ships from./drivers/net/ethernet/hisilic...and it's dated October 2026 β so mark your calendars bestie, and remember the title ishns_get_channels(9)in case you forgot already. 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