ANDROID: dma-buf: add get_each_dmabuf function

Add and export get_each_dmabuf function which helps in
traversing the db_list, this will be used by the minidump
module to get dmabuf info.

Bug: 181203151
Change-Id: Ie24788fcf9cf0a49316cb871dcb9191e8084ccde
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
This commit is contained in:
Vijayanand Jitta
2021-02-25 17:23:25 +05:30
committed by Suren Baghdasaryan
parent a05c4bdbc0
commit 51b610b87d
2 changed files with 26 additions and 0 deletions

View File

@@ -588,6 +588,8 @@ dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach)
return !!attach->importer_ops;
}
int get_each_dmabuf(int (*callback)(const struct dma_buf *dmabuf,
void *private), void *private);
int is_dma_buf_file(struct file *file);
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
struct device *dev);