diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2019-12-16 12:01:19 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-12-24 10:18:32 +0530 |
commit | 8ad342a863590b24ce77681b7e081363fb3333f7 (patch) | |
tree | 393b6621b115e7cc07ff47e75ab897f929902654 /net/mac80211/key.h | |
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 <logang@deltatee.com>
Link: https://lore.kernel.org/r/20191216190120.21374-5-logang@deltatee.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'net/mac80211/key.h')
0 files changed, 0 insertions, 0 deletions