__ip_dev_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

__ip_dev_find(9)

okay so this is the __ip_dev_find(9) page from the Kernel API Manual, bestie πŸ’– it’s short, it’s iconic, and it’s lowkey a vibe check for your kernel code.

🌸 NAME 🌸

__ip_dev_find β€” find the first device with a given source address. periodt πŸ’…

✨ SYNOPSIS ✨

       struct net_device * __ip_dev_find (struct net *net , __be32 addr , bool
       devref );

πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the net namespace, the whole group-chat context basically.
  • addr β€” the source address you’re looking for, bestie.
  • devref β€” if true, take a reference on the found device. that’s the whole flag vibe.

πŸ’… DESCRIPTION πŸ’…

if a caller uses devref=false, it should be protected by RCU, or RTNL. that’s the caveat, no cap β€” don’t skip it 🫢

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./net/ipv4/devinet.c

okay that’s the whole page, bestie 🫢 source/version: ./net/ipv4; date: October 2026; page: __ip_dev_find(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from