gobj_to_entity(9)
π 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 thestruct media_gobjgraph 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":
enum media_gobj_type(9)struct media_gobj(9)struct media_entity_enum(9)struct media_graph(9)struct media_pipeline(9)struct media_pipeline_pad(9)struct media_pipeline_pad_iter(9)struct media_pipeline_entity_iter(9)struct media_link(9)enum media_pad_signal_type(9)struct media_pad(9)struct media_entity_operations(9)enum media_entity_type(9)struct media_entity(9)media_entity_for_each_pad(9)struct media_interface(9)struct media_intf_devnode(9)media_entity_id(9)media_type(9)media_id(9)media_gobj_gen_id(9)is_media_entity_v4l2_video_device(9)is_media_entity_v4l2_subdev(9)media_entity_enum_init(9)media_entity_enum_cleanup(9)media_entity_enum_zero(9)media_entity_enum_set(9)media_entity_enum_clear(9)media_entity_enum_test(9)media_entity_enum_test_and_set(9)media_entity_enum_empty(9)media_entity_enum_intersects(9)gobj_to_pad(9)gobj_to_link(9)gobj_to_intf(9)intf_to_devnode(9)media_gobj_create(9)media_gobj_destroy(9)media_entity_pads_init(9)media_entity_cleanup(9)media_get_pad_index(9)media_create_pad_link(9)media_create_pad_links(9)media_entity_remove_links(9)__media_entity_setup_link(9)media_entity_setup_link(9)media_entity_find_link(9)media_pad_remote_pad_first(9)media_pad_remote_pad_unique(9)media_entity_remote_pad_unique(9)media_entity_remote_source_pad_unique(9)media_pad_is_streaming(9)media_entity_is_streaming(9)media_entity_pipeline(9)media_pad_pipeline(9)media_entity_get_fwnode_pad(9)media_graph_walk_init(9)media_graph_walk_cleanup(9)media_graph_walk_start(9)media_graph_walk_next(9)media_pipeline_start(9)__media_pipeline_start(9)media_pipeline_stop(9)__media_pipeline_stop(9)media_pipeline_for_each_pad(9)media_pipeline_entity_iter_init(9)media_pipeline_entity_iter_cleanup(9)media_pipeline_for_each_entity(9)media_pipeline_alloc_start(9)media_devnode_create(9)media_devnode_remove(9)media_create_intf_link(9)__media_remove_intf_link(9)media_remove_intf_link(9)__media_remove_intf_links(9)media_remove_intf_links(9)media_entity_call(9)media_create_ancillary_link(9)__media_entity_next_link(9)for_each_media_entity_data_link(9)
real talk: my girlgobj_to_entityis the tiny little converter in a whole family of converters β seegobj_to_pad(9),gobj_to_link(9)andgobj_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
- 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