drm_ras_nl_l...nodes_dumpit(9)
β¨ drm_ras_nl_list_nodes_dumpit(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's a kernel function page and it's lowkey iconic, so let's get into it π«Ά
πΈ NAME πΈ
drm_ras_nl_list_nodes_dumpit β literally dumps all the registered RAS nodes. that's the whole vibe π
β SYNOPSIS β
int drm_ras_nl_list_nodes_dumpit (struct sk_buff *skb , struct netlink_callback *cb );
π ARGUMENTS π
skbβ the Netlink message buffer π (it's the thing we're stuffing all the node info into, bestie)cbβ the callback context for multi-part dumps β¨ (this is the one that keeps track of where we're at)
π¦ DESCRIPTION π¦
so what this function does is it iterates over all the registered RAS nodes sitting in the global xarray, and appends their attributes β that's the ID, the name, and the type β straight into the given netlink message buffer π₯
it uses cb->ctx to track its progress in case the message buffer fills up, which is what gives you that multi-part dump support, no cap π and on buffer overflow? it updates the context so it can resume from the last node on the next invocation. the way it just picks up where it left offβ¦ main character energy fr fr π
π RETURN π
0β slay, all the nodes fit inskbπ- number of bytes added to
skbβ the buffer filled up, so you're gonna need the multi-part continuation π - a negative error code β something went wrong, sorry bestie π
ngl, that middle one is the one to watch: if you get a byte count back instead of 0, the dump isn't done yet and it's asking for a continuation. iykyk π
π§ SEE ALSO π§
- the kernel file
./drivers/gpu/drm/drm_ras.c DRM RAS Node Management(9)drm_ras_nl_get_error_counter_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)
like, go read them, they're all part of the same little friend group π
and that's the page!! ππβ¨ this one lives in ./drivers/gpu/drm and it's dated October 2026, filed under drm_ras_nl_l...nodes_dumpit(9) β mwah, obsessed with her, byeee bestie π«Άπ
π¦ 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