netif_carrier_event(9)
π NAME π
netif_carrier_event β report carrier state event. This is the netif_carrier_event(9) page from the Kernel API Manual, and yes, the manual name is folded in right here instead of copying the boring header line π
.
β¨ SYNOPSIS β¨
void netif_carrier_event (struct net_device *dev );
π¦ ARGUMENTS π¦
devβ the network device, bestie. That's the one this whole thing is about.
πΈ DESCRIPTION πΈ
So the device has detected a carrier event, but the carrier state wasn't changed. That's the whole vibe. Use this in drivers when you're querying carrier state asynchronously, so you don't miss events β link flaps, specifically β if the link recovers before it's queried. No cap, that's the point: don't let a fast little recovery sneak past your query.
π₯ SEE ALSO π₯
- Kernel file
./net/sched/sch_generic.c netif_carrier_on(9)netif_carrier_off(9)dev_deactivate_many(9)psched_ratecfg_precompute__(9)
These are the little friends in the neighborhood, periodt π«Ά.
And for the cute sign-off: the footer source/version line is ./net/sched, dated October 2026 β¨. That's the whole page, bestie β go query that carrier state asynchronously and slay π.
π¦ 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