get_base_qpn(9)
β¨ get_base_qpn π
okay bestie, welcome to the get_base_qpn page from the Kernel API Manual β yes that's manual section 9, kernel API, we love a niche corner of the docs π
πΈ NAME πΈ
get_base_qpn β literally just grabs the first qp number for you, no cap π
π¦ SYNOPSIS π¦
int get_base_qpn (struct hinic_hwdev *hwdev , u16 *base_qpn );
β¨ ARGUMENTS β¨
hwdevβ the NIC HW device, aka the whole hardware situation you're working with π«Άbase_qpnβ the qp number that gets returned to you, it's an output, she's giving results π
π DESCRIPTION π
Return 0 for Success, and negative for Failure. that's it, that's the whole vibe check π zero means slay, negative means uh oh π
ngl bestie, the manpage is not gonna hold your hand here β it says exactly this and nothing more, so don't come for me about extra details π
π₯ SEE ALSO π₯
the kernel file lives right here, iconic: ./drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c π
and the whole friend group of related functions, all in section 9, all matching this energy π:
parse_capability(9)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)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)
okay that's the whole page bestie, go get that qp number π§π«
source/version: ./drivers/net/ethernet/huawei/... β dated October 2026 β and it's still get_base_qpn(9) at the end, periodt πβ
π¦ 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