aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSylwester Nawrocki <[email protected]>2013-05-09 08:29:32 -0300
committerMauro Carvalho Chehab <[email protected]>2013-06-19 08:59:54 -0300
commit7349cec14d63251d093a213f7d40ed3c732b3734 (patch)
tree30e7586248efe054a2926fc916a5de7bb4221f63 /tools/perf/scripts/python/bin
parent2a3e7256851b642f35c3bb550be77b815486b469 (diff)
[media] media: Add a function removing all links of a media entity
This function allows to remove all media entity's links to other entities, leaving no references to a media entity's links array at its remote entities. Currently, when a driver of some entity is removed it will free its media entities links[] array, leaving dangling pointers at other entities that are part of same media graph. This is troublesome when drivers of a media device entities are in separate kernel modules, removing only some modules will leave others in an incorrect state. This function is intended to be used when an entity is being unregistered from a media device. With an assumption that normally the media links should be created between media entities registered to a media device, with the graph mutex held. Signed-off-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions