hfi1_netdev_rx_init(9)
π hfi1_netdev_rx_init(9) β from the Kernel API Manual, bestie π
okay so listen up, because this one is literally about counting but it's also about allocating, and that duality is so main character of it. β¨
πΈ NAME πΈ
hfi1_netdev_rx_init β increments the netdevs counter, no cap. and the first time you call it? it does the whole glow-up: allocates the receive queue data and calls netif_napi_add for every single queue. every one. π
β¨ SYNOPSIS β¨
int hfi1_netdev_rx_init (struct hfi1_devdata *dd );
like, that's the whole vibe. one function, one pointer, one int return. clean. π¦
π«Ά ARGUMENTS π«Ά
ddβ the hfi1 dev data. that's it, that's the whole argument. it's giving "minimalist icon" honestly. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/infiniband/hw/hfi1/netdev_rx.cβ go read the source, iykyk π hfi1_num_netdev_contexts(9)hfi1_netdev_rx_destroy(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)
the whole friend group fr fr π β go say hi to all of them.
ok real talk for a sec: it increments a counter, and that first-call behavior means the allocation + the netif_napi_add calls only happen once, on that very first call. so don't be out here expecting a fresh alloc every time, bestie. π©·
and that's the page!! sign-off time: this little beauty lives in ./drivers/infiniband/hw/hfi1 and it's dated October 2026 β so like, future iconic. π 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