diff options
author | Logan Gunthorpe <[email protected]> | 2019-12-16 12:01:19 -0700 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2019-12-24 10:18:32 +0530 |
commit | 8ad342a863590b24ce77681b7e081363fb3333f7 (patch) | |
tree | 393b6621b115e7cc07ff47e75ab897f929902654 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 11a0fd2b3baa5e4a97197b9cd990b5d05e69d669 (diff) |
dmaengine: Add reference counting to dma_device struct
Adding a reference count helps drivers to properly implement the unbind
while in use case.
References are taken and put every time a channel is allocated or freed.
Once the final reference is put, the device is removed from the
dma_device_list and a release callback function is called to signal
the driver to free the memory.
Signed-off-by: Logan Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions