netif_carrier_ok(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netif_carrier_ok (9) πŸ’–

okay so before we even start β€” welcome to the Kernel API Manual, bestie πŸŽ€ this is the page for netif_carrier_ok(9) and it's gonna be quick but iconic, i promise.


✨ NAME ✨

netif_carrier_ok β€” test if carrier present

like, it literally just checks the vibe of the cable πŸ¦‹


🌸 SYNOPSIS 🌸

bool netif_carrier_ok (const struct net_device *dev );

yes it returns a bool, yes it takes a const struct net_device * β€” no cap, that's the whole signature πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” network device 🫢 that's it. that's the argument. the network device. the one and only.

πŸ’œ DESCRIPTION πŸ’œ

Check if carrier is present on device ✨

that's the assignment, that's the whole mission statement. you hand it a network device, it tells you whether the carrier is present. main character function energy honestly πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./include/linux/netdevice.h β€” and like, the entire extended friend group:


lowkey that SEE ALSO list is a whole friend group chat and every single one of them got an invite πŸ’€ but they're all valid, go say hi.

mwah πŸ’‹ that's the page. sourced from ./include/linux, dated October 2026 β€” go forth and check ur carriers, bestie, you're gonna slay πŸ¦‹βœ¨

πŸ“¦ where this page comes from