hfi1_netdev_add_data(9)
π hfi1_netdev_add_data β Kernel API Manual realness β¨
Okay so bestie, welcome to the hfi1_netdev_add_data(9) page, straight out of the Kernel API Manual πΈ this one's short and sweet but lowkey important, so let's get into it.
β¨ NAME β¨
hfi1_netdev_add_data β the function that registers data with a unique identifier so it can be requested later. Yep, that's the whole vibe. It's needed for IPoIB VLANs implementations π¦ and β super important, don't sleep on this β this call is protected by mutex idr_lock π
π SYNOPSIS π
int hfi1_netdev_add_data (struct hfi1_devdata *dd , int id , void *data );
π ARGUMENTS π
ddβ the hfi1 dev data π«Άidβ the requested integer id, and it goes up toINT_MAX(that's the ceiling, bestie, respect it) π₯dataβ the data to be associated with the index β¨
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/hfi1/netdev_rx.c(that's where the magic lives, iykyk) π§ hfi1_num_netdev_contexts(9)hfi1_netdev_rx_init(9)hfi1_netdev_rx_destroy(9)hfi1_alloc_rx(9)hfi1_netdev_enable_queues(9)hfi1_netdev_remove_data(9)hfi1_netdev_get_data(9)hfi1_netdev_get_first_data(9)
And that's the whole page, bestie, you ate that π
this cutie came to you from ./drivers/infiniband/hw/hfi1, dated October 2026 β iconic source, iconic date, no cap ππ
π¦ 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