devlink_dpi...nter_enabled(9)
π devlink_dpipe_table_counter_enabled(9) π
okay bestie, welcome to the Kernel API Manual β yes, that's the whole vibe, a kernel API manual, and honestly? it ate. sit down, hydrate, let's talk about counters β¨
πΈ NAME πΈ
devlink_dpipe_table_counter_enabled β check if counter allocation required π₯
like, the function's whole job is answering one question: "do we need counters here or nah?" and it's giving very much helpful bestie energy π
π¦ SYNOPSIS π¦
bool devlink_dpipe_table_counter_enabled (struct devlink *devlink , const char *table_name );
so it returns a bool, it takes a struct devlink *devlink and a const char *table_name, and no cap, that's the whole signature π
π ARGUMENTS π
devlinkβ a devlink. yeah that's it, that's the description π it's literally "devlink", the manpage said so, and we respect the manpage.table_nameβ the table's name π« (the original says "tables name", which is giving slightly unhinged grammar, but the meaning is right there β it's the name of the table bestie)
β¨ DESCRIPTION β¨
so here's the deal, babes π
This is used by the driver to check if counter allocation is required. that's the whole check. no gatekeeping π«Ά
After counter allocation is turned on, the table entries are updated to include counter statistics. so like, boom π₯ suddenly your entries are out here carrying stats, main character energy fr fr π
After that point on, the driver must respect the counter state so that each entry added to the table is added with a counter. notice the "must" β that's not a suggestion, that's a periodt. the driver has to keep the counter state in mind for every single entry it adds, no exceptions, no "oops I forgot" π
ngl this is the important bit: once counters are on, every new entry gets added with a counter. the driver has to stay in sync with that state. lowkey iconic of the kernel to just tell you directly π
π SEE ALSO π
- Kernel file
./net/devlink/dpipe.cπ devl_dpipe_headers_register(9)devl_dpipe_headers_unregister(9)devl_dpipe_table_register(9)devl_dpipe_table_unregister(9)devl_dpipe_table_resource_set(9)
all of these are also in ./net/devlink if you wanna go read them, and honestly you should, iykyk π¦β¨
kay that's the whole page bestie, go forth and allocate counters responsibly π
sign-off era: this one lives in ./net/devlink, dated October 2026 πΈ till next time, mwah ππ
π¦ 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