ngbe_setup_tc(9)
π ngbe_setup_tc(9) β the kernel API manual, bestie edition
Okay so welcome to the Kernel API Manual page for ngbe_setup_tc(9) β yes that (9) means it lives in the kernel-y section, iykyk. This is the little routine that configures your net_device for multiple traffic classes, and honestly? It's giving quiet overachiever. Let's get into it β¨
π NAME π
ngbe_setup_tc β routine to configure net_device for multiple traffic classes.
Like, that's her whole job. No cap. She takes a net device and gets it set up with more than one traffic class. π
π¦ SYNOPSIS π¦
int ngbe_setup_tc (struct net_device *dev , u8 tc );
That's the whole signature, bestie β returns an int, takes a struct net_device * and a u8. Nothing extra, nothing missing. π«Ά
πΈ ARGUMENTS πΈ
devβ the net device to configure. This is the main character of the call, the thing getting all dressed up with traffic classes.tcβ the number of traffic classes to enable. It's au8, so keep it cute and keep it in range.
β SEE ALSO β
Okay so the kernel file you wanna go snoop in is literally right here:
./drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
And here's the whole bestie friend group of related pages β go say hi to all of them:
ngbe_init_type_code(9)ngbe_sw_init(9)ngbe_service_task(9)ngbe_irq_enable(9)ngbe_intr(9)ngbe_request_msix_irqs(9)ngbe_request_irq(9)ngbe_open(9)ngbe_close(9)ngbe_probe(9)ngbe_remove(9)
π Reminder to my future self: this page gives you the signature, the two arguments, and the related pages. It does not spill extra tea about return values or error behaviour, so don't go inventing any. Periodt.
That's the whole page, babe β short, sweet, and extremely on brand. π
Source/version note: the footer traces back to ./drivers/net/ethernet/wangxun..., dated October 2026, and it's still filed under ngbe_setup_tc(9). Mwah π β go forth and configure those traffic classes, icon. ππ
π¦ 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