__ip_dev_find(9)
__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
- 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