in6_dev_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 typed const struct net_device *dev, and yes, that const is 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 🌈


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