[media] media: Entity use count
[deliverable/linux.git] / Documentation / media-framework.txt
index ab17f33ddedcf7e88ed875db576bd2e19d74b05d..78ae02095372cac2408a603cc825db98e3df6d17 100644 (file)
@@ -258,3 +258,16 @@ When the graph traversal is complete the function will return NULL.
 
 Graph traversal can be interrupted at any moment. No cleanup function call is
 required and the graph structure can be freed normally.
+
+
+Use count and power handling
+----------------------------
+
+Due to the wide differences between drivers regarding power management needs,
+the media controller does not implement power management. However, the
+media_entity structure includes a use_count field that media drivers can use to
+track the number of users of every entity for power management needs.
+
+The use_count field is owned by media drivers and must not be touched by entity
+drivers. Access to the field must be protected by the media device graph_mutex
+lock.
This page took 0.025274 seconds and 5 git commands to generate.