__in6_dev_get_safely(9)
π¦ NAME
__in6_dev_get_safely β ok so this one pulls the inet6_dev pointer out of a netdevice, but likeβ¦ safely π
(this is all from the Kernel API Manual, bestie β kernel-internals girlie hours β¨)
π SYNOPSIS
struct inet6_dev * __in6_dev_get_safely (const struct net_device *dev );
π ARGUMENTS
devβ the network device you're grabbing it from. that's the whole argument, she's low maintenance π«Ά
β¨ DESCRIPTION
So here's the tea: this is the safer version of __in6_dev_get. literally that's it, that's the flex π
ngl the "safely" in the name is doing a LOT of heavy lifting and honestly? iconic of her.
π SEE ALSO
__in6_dev_get(9)β the unsafe one, the reckless one, the main character with no self-preservation π«£__in6_dev_stats_get(9)in6_dev_get(9)- and they all live in the kernel file
./include/net/addrconf.hπ
ok that's the whole page, no cap π§π
little sign-off besties: this was brought to you by the Kernel API Manual, from ./include/net, dated October 2026. go forth and get your device pointers safely ππΈ
π¦ 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