devlink_alloc_ns(9)
okay so bestie, welcome to the Kernel API Manual page for devlink_alloc_ns(9) β manual name folded in near the top like a cute lil bookmark π
π NAME π
devlink_alloc_ns β allocate new devlink instance resources in a specific namespace. That's the whole vibe: new devlink instance resources, specific namespace, slay. β¨
β¨ SYNOPSIS β¨
the signature, character for character, no cap:
struct devlink * devlink_alloc_ns (const struct devlink_ops *ops , size_t priv_size , struct net *net , struct device *dev );
π ARGUMENTS π
opsβops. that's it. the manpage gave us one word and honestly? iconic minimalism πpriv_sizeβ size of user private data.netβ net namespace.devβ parent device.
π¦ DESCRIPTION π¦
Allocate new devlink instance resources, including devlink index and name. So yes: resources, index, name β the whole package. periodt. π
πΈ SEE ALSO πΈ
Kernel file ./net/devlink/core.c, plus the whole squad:
devlink_rel_nested_in_notify(9)devlink_try_get(9)devl_register(9)devl_unregister(9)devlink_free(9)
and that's the page, bestie! it's from ./net/devlink, dated October 2026, and it's the devlink_alloc_ns(9) manual page. stay hydrated and keep your namespaces specific π«Άπβ¨
π¦ 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