get_net_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_net_ns(9) β€” Kernel API Manual, bestie edition ✨

okay so welcome to the Kernel API Manual page for get_net_ns(9) β€” this is the little function that does the refcount thing for network namespaces. Let’s get into it 🫢

🌸 NAME 🌸

get_net_ns β€” increment the refcount of the network namespace

✨ SYNOPSIS ✨

struct ns_common * get_net_ns (struct ns_common *ns );

πŸŽ€ ARGUMENTS πŸŽ€

  • ns β€” common namespace (net)

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns the net's common namespace or ERR_PTR if ref is zero. That’s the whole vibe check, no cap πŸ’–

πŸ’– SEE ALSO πŸ’–

Kernel file ./net/core/net_namespace.c.


cute little sign-off: source path ./net/core, dated October 2026, and the page is get_net_ns(9) πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from