gobj_to_entity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gobj_to_entity β€” Kernel API Manual, but make it make sense

okay bestie, welcome to the gobj_to_entity(9) page ✨ this is a kernel API manual entry (yes, the nine in the parentheses means kernel section, iykyk), and it's genuinely so simple it's iconic.


🌸 NAME

gobj_to_entity β€” returns the struct &media_entity pointer from the @gobj contained on it.

like. that's it. that's the whole vibe. you hand it a gobj, it hands you back the entity pointer that lives inside it 🫢


✨ SYNOPSIS

gobj_to_entity (gobj );

no cap, that's the exact call, semicolon spacing and all β€” don't come for me about the stray space before the paren, it's literally in the original πŸ’€


πŸŽ€ ARGUMENTS

  • gobj β€” Pointer to the struct media_gobj graph object. that's the thing you're passing in, and she's a pointer, so pls don't hand over a whole struct, that's not the assignment πŸ™ˆ

πŸ‘‘ SEE ALSO

bestie this list is long β€” she ate and left no crumbs. everything below lives in the kernel file ./include/media/media-entity.h, and honestly it's giving "the whole media subsystem showed up to the group chat":

real talk: my girl gobj_to_entity is the tiny little converter in a whole family of converters β€” see gobj_to_pad(9), gobj_to_link(9) and gobj_to_intf(9) above if you want the siblings πŸ¦‹

πŸ’– a lil sign-off

that's the page, bestie! source path is ./include/media and the date stamp on this one is October 2026 β€” so she's cute, she's current, she's dated, periodt πŸ’…βœ¨ go convert some gobjs, you absolute icon πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from