parse_capability(9)
π parse_capability(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual, and the vibe today is glow-ups: this little function's whole job is taking the capability tea the firmware spilled and translating it into NIC capabilities. literally a makeover montage in C. π
β¨ NAME β¨
parse_capability β converts device capabilities into NIC capabilities. it's giving translator, it's giving intermediary, it's giving "let me rephrase that for you bestie." π¦
πΈ SYNOPSIS πΈ
int parse_capability (struct hinic_hwdev *hwdev , struct hinic_dev_cap
*dev_cap );
π ARGUMENTS π
hwdevβ the HW device you're setting and converting device capabilities for. it's the main character here, the one getting the glow-up. πdev_capβ device capabilities straight from FW. the raw material, the before photo, the unedited draft. π
π DESCRIPTION π
Returns 0 for Success, and a negative value for Failure. that's it, that's the whole description, no cap. slay a concise legend. β¨
lowkey love a function that says exactly what it means and dips. no notes. π
π₯ SEE ALSO π₯
it's a whole friend group, and they're all linked in the kernel file ./drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c π«Ά
get_capability(9)get_dev_cap(9)init_msix(9)disable_msix(9)hinic_port_msg_cmd(9)init_fw_ctxt(9)set_hw_ioctxt(9)clear_io_resources(9)set_resources_state(9)get_base_qpn(9)hinic_hwdev_ifup(9)hinic_hwdev_ifdown(9)hinic_hwdev_cb_register(9)hinic_hwdev_cb_unregister(9)nic_mgmt_msg_handler(9)init_pfhwdev(9)free_pfhwdev(9)hinic_init_hwdev(9)hinic_free_hwdev(9)hinic_hwdev_num_qps(9)hinic_hwdev_get_sq(9)hinic_hwdev_get_rq(9)hinic_hwdev_msix_cnt_set(9)hinic_hwdev_msix_set(9)hinic_hwdev_hw_ci_addr_set(9)hinic_hwdev_set_msix_state(9)
and that's the page, bestie! π source squiggle ./drivers/net/ethernet/huawei/... β dated October 2026, so mark your calendar, this manual page said what it said and it ate. π bye bestie, go convert some capabilities! π
π¦ 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