aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r--include/media/media-entity.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 28f61f6ee549..a9b31d98e3c6 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -81,6 +81,12 @@ struct media_entity {
81 struct media_pad *pads; /* Pads array (num_pads elements) */ 81 struct media_pad *pads; /* Pads array (num_pads elements) */
82 struct media_link *links; /* Links array (max_links elements)*/ 82 struct media_link *links; /* Links array (max_links elements)*/
83 83
84 /* Reference counts must never be negative, but are signed integers on
85 * purpose: a simple WARN_ON(<0) check can be used to detect reference
86 * count bugs that would make them negative.
87 */
88 int use_count; /* Use count for the entity. */
89
84 union { 90 union {
85 /* Node specifications */ 91 /* Node specifications */
86 struct { 92 struct {
@@ -129,6 +135,9 @@ void media_entity_cleanup(struct media_entity *entity);
129int media_entity_create_link(struct media_entity *source, u16 source_pad, 135int media_entity_create_link(struct media_entity *source, u16 source_pad,
130 struct media_entity *sink, u16 sink_pad, u32 flags); 136 struct media_entity *sink, u16 sink_pad, u32 flags);
131 137
138struct media_entity *media_entity_get(struct media_entity *entity);
139void media_entity_put(struct media_entity *entity);
140
132void media_entity_graph_walk_start(struct media_entity_graph *graph, 141void media_entity_graph_walk_start(struct media_entity_graph *graph,
133 struct media_entity *entity); 142 struct media_entity *entity);
134struct media_entity * 143struct media_entity *