in6_dev_get(9)
in6_dev_get(9) π
okay bestie, welcome to a lil page straight outta the Kernel API Manual β it's giving kernel-core π and it's all about in6_dev_get. short, iconic, let's go β¨
πΈ NAME πΈ
in6_dev_get β get the inet6_dev pointer from a netdevice. literally that's the whole vibe π¦
π¦ SYNOPSIS π¦
struct inet6_dev * in6_dev_get (const struct net_device *dev );
No cap, that's the exact signature, copy it carefully bestie π«Ά
π ARGUMENTS π
devβ the network device, aka the netdevice you're pulling the pointer from π It's typedconst struct net_device *dev, and yes, thatconstis doing its main character thing.
π₯ DESCRIPTION π₯
okay so here's the tea: this version can be used in any context β yes bestie, any context, no cap. It takes a reference on the inet6_dev, so you're officially holding onto it now π
Callers must use in6_dev_put later to release this reference. Like, actually do it β that's the rule, periodt. Don't just take the reference and ghost it π
π SEE ALSO π
- Kernel file
./include/net/addrconf.hβ__in6_dev_get(9),__in6_dev_stats_get(9),__in6_dev_get_safely(9)π¦ go read those too, iykyk.
mwah π this page came from ./include/net, dated October 2026, and it's literally in6_dev_get(9) signing off π«Άβ¨
π¦ 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