hfi1_netdev_rx_destroy(9)
π hfi1_netdev_rx_destroy β the kernel API glow-up π
okay bestie, so this one is from the Kernel API Manual, section 9 (that's the kernel-functions section, iykyk). It's a tiny little cleanup function and honestly? She's the responsible friend who makes sure everyone actually leaves the party π§Ήβ¨
πΈ NAME πΈ
hfi1_netdev_rx_destroy β so basically it decrements the netdevs counter, and when that counter hits 0, the napi gets deleted and the receive queues' memory gets freed π
lowkey iconic behaviour: she's the last one out, and she turns off the lights.
π¦ SYNOPSIS π¦
int hfi1_netdev_rx_destroy (struct hfi1_devdata *dd );
(she takes one argument, she returns an int, no cap β¨)
π ARGUMENTS π
ddβ the hfi1 dev data
that's it. that's the whole argument list. one (1) parameter, and it's the dev data π«Ά
π SEE ALSO π
the source file herself lives right here, in the kernel file:
./drivers/infiniband/hw/hfi1/netdev_rx.c
and here's the whole friend group, all of them slay in their own way π:
hfi1_num_netdev_contexts(9)hfi1_netdev_rx_init(9)hfi1_alloc_rx(9)hfi1_netdev_enable_queues(9)hfi1_netdev_add_data(9)hfi1_netdev_remove_data(9)hfi1_netdev_get_data(9)hfi1_netdev_get_first_data(9)
π reminder bestie:destroyin the name is not a vibe, it's a job. counter goes down, and at0the napi is deleted and the receive queues' memory is freed. that's literally the whole plot. don't forget it π
and that's the tea β from ./drivers/infiniband/hw/hfi1, dated October 2026, sourced from the Kernel API Manual β hfi1_netdev_rx_destroy(9) out ππ§ββοΈβ¨
π¦ 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