drm_ras_nl_...counter_doit(9)
π drm_ras_nl_...counter_doit(9)
okay so bestie, welcome to the Kernel API Manual β this one's a little function page from the DRM RAS corner of the kernel, and honestly? it's giving "small but mighty" β¨
β¨ NAME β¨
drm_ras_nl_clear_error_counter_doit β literally just: Clear an error counter of a node. that's the whole vibe. π§Ήπ
π¦ SYNOPSIS π¦
int drm_ras_nl_clear_error_counter_doit (struct sk_buff *skb , struct
genl_info *info );
yep, that's the whole signature β takes two pointers, hands you back an int. no cap. π«Ά
π ARGUMENTS π
skbβ the Netlink message buffer. it's the actual message payload, bestie, the thing that came in off the wire πinfoβ the Generic Netlink info, which contains the attributes of the request. this is where the juicy details live π
πΈ DESCRIPTION πΈ
so what does it actually do? it extracts the node ID and error ID from the netlink attributes β like, it goes digging in the request, pulls those two out β and then it clears the current value. that's it. counter? cleared. done. iconic behavior honestly π₯
β RETURN β
0on success π- a negative errno on failure π (so like, if it goes wrong, don't expect a happy little zero β check the sign, iykyk)
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_ras.c DRM RAS Node Management(9)drm_ras_nl_list_nodes_dumpit(9)drm_ras_nl_get_error_counter_dumpit(9)drm_ras_nl_get_error_counter_doit(9)drm_ras_node_register(9)drm_ras_node_unregister(9)
like, go read those if you want the full lore ππ
ngl bestie, this one's short and sweet β but the details still matter, so don't sleep on the errno check fr fr π
mwah π this page lives under ./drivers/gpu/drm and it's dated October 2026 β yes, that's the version/date footer, and yes, we're mentioning it because the rules said so π drm_ras_nl_...counter_doit(9) out. slay β¨
π¦ 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