ENUM NET_SHAPER_SCOPE(9)
π enum net_shaper_scope(9) β the Kernel API Manual, bestie edition π
okay so this is a page straight out of the Kernel API Manual and it's literally about enum net_shaper_scope, which is the thing that tells you how to read the @id field of a shaper. that's it. that's the whole vibe. it's giving "small enum, big responsibilities" β¨
πΈ NAME πΈ
enum net_shaper_scope β bestie, this is the enum that defines how the shaper @id should be interpreted. no cap, that's the entire job description π«Ά
β¨ SYNOPSIS β¨
enum net_shaper_scope {
NET_SHAPER_SCOPE_UNSPEC ,
NET_SHAPER_SCOPE_NETDEV ,
NET_SHAPER_SCOPE_QUEUE ,
NET_SHAPER_SCOPE_NODE
};
look at her. four members, all caps, absolutely slaying in a header file somewhere π
π¦ CONSTANTS π¦
NET_SHAPER_SCOPE_UNSPECβ the scope is not specified. it's the "idk, figure it out" option πNET_SHAPER_SCOPE_NETDEVβ this is the main shaper for the given network device. head shaper in charge, main character energy πNET_SHAPER_SCOPE_QUEUEβ the shaper is attached to the given device queue, and theidrepresents the queue number. so the id is literally just "which queue bestie" πNET_SHAPER_SCOPE_NODEβ this one's the group-project icon: the shaper allows grouping of queues or other node shapers, and it can be nested in either netdev shapers or other node shapers, which means it can live in any location of the scheduling tree, except leaves and root. so close to being a free spirit π not the leaves, not the root, everywhere else is fair game π§
π SEE ALSO π
- Kernel file
./include/uapi/linux/net_shaper.hπ enum net_shaper_metric(9)β her sibling, go read that one too fr fr
lowkey a reminder: NET_SHAPER_SCOPE_NODE cannot be a leaf and cannot be the root. that's not a suggestion, that's the rule, bestie π
and that's the page!! written with love from the folks at ./include/uapi/linux, dated October 2026 β mwah, go forth and shaper responsibly π¦π
π¦ 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