to_drm_gpusvm_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… to_drm_gpusvm_range(9) πŸ’…

okay so this is a page from the Kernel API Manual and honestly? it's a tiny little glow-up of a function and i'm obsessed πŸŽ€ it lives in the kernel's DRM/gpusvm corner and it's basically the "who's your real parent" moment for an rbtree node. iykyk.


✨ NAME ✨

to_drm_gpusvm_range β€” retrieve the container struct for a given rbtree node πŸ¦‹

like, the node is in the struct bestie, this is how you get back out to the whole thing.


🌸 SYNOPSIS 🌸

struct drm_gpusvm_range * to_drm_gpusvm_range (struct rb_node *node );

πŸ’– ARGUMENTS πŸ’–

  • node β€” a pointer to the rbtree node embedded within a drm_gpusvm_range struct. yes, embedded, as in it's living inside the bigger struct, not off on its own little main character journey πŸ’€

⭐ RETURN ⭐

A pointer to the containing drm_gpusvm_range structure. slay. that's the whole bit β€” you hand it the inner node, it hands you back the outer struct 🫢

ngl it's giving "container_of energy" but we're not gonna put words in the manpage's mouth πŸ’…

🌈 SEE ALSO 🌈

bestie the reading list is LONG but every single one of these is required viewing, no skipping πŸ”₯


okay that's the whole page, short and sweet, icon behaviour only πŸ’œ this cutie came out of ./drivers/gpu/drm and it's dated October 2026, and the name on the birth certificate is to_drm_gpusvm_range(9) β€” periodt. πŸ§šβ€β™€οΈβœ¨πŸ“

πŸ“¦ where this page comes from