drm_ras_nl_...unter_dumpit(9)
π NAME π
Okay bestie, gather round β this page is literally the Kernel API Manual entry for drm_ras_nl_get_error_counter_dumpit, and its whole job is: dump all Error Counters β¨ (yes, the header on this page is genuinely truncated mid-word β drm_ras_nl_...unter_dumpit(9) β and we're just gonna vibe with that, no cap π)
π SYNOPSIS π
int drm_ras_nl_get_error_counter_dumpit (struct sk_buff *skb , struct
netlink_callback *cb );
πΈ ARGUMENTS πΈ
skbβ the Netlink message buffer, aka the little envelope everything gets stuffed into πcbβ the callback context, and specifically the thing that makes multi-part dumps possible π«Ά
β¨ DESCRIPTION β¨
So here's the tea: this function walks over all the error counters in a given Node and appends each one's attributes β that's the ID, the name, and the value β onto the netlink message buffer you handed it. Every single one, no skipping, we're thorough like that π
It keeps its place using cb->ctx to track progress, which matters big time in case the message buffer fills up β that's how the whole multi-part dump situation works π
And on buffer overflow? It updates the context so the next invocation picks right back up from the last node. Resume-from-where-we-left-off energy, lowkey iconic π
π₯ RETURN π₯
0β if all the errors fit inskb, we're done, slay, go home π- the number of bytes added to
skbβ if the buffer filled up, which means you do need a multi-part continuation (it's giving "to be continuedβ¦" π¦) - a negative error code β if something went wrong π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_ras.cDRM RAS Node Management(9)drm_ras_nl_list_nodes_dumpit(9)drm_ras_nl_get_error_counter_doit(9)drm_ras_nl_clear_error_counter_doit(9)drm_ras_node_register(9)drm_ras_node_unregister(9)
fr fr go read those if you want the full lore, iykyk π
Okay that's the whole page, bestie β it lives over in ./drivers/gpu/drm and this version is dated October 2026. Mwah, mwah, go dump some counters, periodt π
β¨π
π¦ 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