hinic_hwdev_ifup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hinic_hwdev_ifup(9) β€” the Kernel API Manual page you didn't know you needed

okay so bestie, welcome to hinic_hwdev_ifup(9) from the Kernel API Manual ✨ this one's short but she's important β€” she's the glow-up your NIC hardware goes through before it's allowed to, like, actually do IO 🫢


🌸 NAME 🌸

hinic_hwdev_ifup β€” Preparing the HW for passing IO πŸ’– literally bringing the hardware up so the IO can flow, no cap


✨ SYNOPSIS ✨

int hinic_hwdev_ifup (struct hinic_hwdev *hwdev , u16 sq_depth , u16
rq_depth );

like, that's the whole signature, copy it exactly bestie πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hwdev β€” the NIC HW device πŸ‘‘ that's your network interface card's hardware device, the main character
  • sq_depth β€” the send queue depth πŸ“€ how deep the send queue goes
  • rq_depth β€” the receive queue depth πŸ“₯ how deep the receive queue goes

🌈 DESCRIPTION 🌈

Return 0 - Success, negative - Failure 😭

ngl that's the entire description in the original and we're not gonna invent lore, so: 0 means she ate and it worked, anything negative means it did not work πŸ’€

πŸ’œ SEE ALSO πŸ’œ

the Kernel file is right here, go look:

./drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c

and here's the whole squad of related calls, every single one, in order, mwah πŸ’…

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), get_base_qpn(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) πŸ”₯

friendly reminder: hinic_hwdev_ifdown(9) is in there too β€” that's the vibe check in reverse, it takes the HW back down πŸ™ˆ

okay that's the whole page, you're officially an expert, periodt πŸ‘‘ and for the cute sign-off: this gem comes from ./drivers/net/ethernet/huawei/... and was dated October 2026, filed under hinic_hwdev_ifup(9) β€” go forth and pass that IO, bestie πŸŽ€πŸ’–

πŸ“¦ where this page comes from