ANDROID: dma-buf: Export is_dma_buf_file
Export is_dma_buf_file function which will be used by the minidump module to get dmabuf info. Bug: 180978053 Change-Id: Ic8f7dd4f0a620839ab19f52841e9a6541515133c Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
e909fe79d2
commit
9784fbe79d
@@ -31,8 +31,6 @@
|
|||||||
|
|
||||||
#include "dma-buf-sysfs-stats.h"
|
#include "dma-buf-sysfs-stats.h"
|
||||||
|
|
||||||
static inline int is_dma_buf_file(struct file *);
|
|
||||||
|
|
||||||
struct dma_buf_list {
|
struct dma_buf_list {
|
||||||
struct list_head head;
|
struct list_head head;
|
||||||
struct mutex lock;
|
struct mutex lock;
|
||||||
@@ -488,10 +486,11 @@ static const struct file_operations dma_buf_fops = {
|
|||||||
/*
|
/*
|
||||||
* is_dma_buf_file - Check if struct file* is associated with dma_buf
|
* is_dma_buf_file - Check if struct file* is associated with dma_buf
|
||||||
*/
|
*/
|
||||||
static inline int is_dma_buf_file(struct file *file)
|
int is_dma_buf_file(struct file *file)
|
||||||
{
|
{
|
||||||
return file->f_op == &dma_buf_fops;
|
return file->f_op == &dma_buf_fops;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(is_dma_buf_file);
|
||||||
|
|
||||||
static struct file *dma_buf_getfile(struct dma_buf *dmabuf, int flags)
|
static struct file *dma_buf_getfile(struct dma_buf *dmabuf, int flags)
|
||||||
{
|
{
|
||||||
|
@@ -588,6 +588,7 @@ dma_buf_attachment_is_dynamic(struct dma_buf_attachment *attach)
|
|||||||
return !!attach->importer_ops;
|
return !!attach->importer_ops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int is_dma_buf_file(struct file *file);
|
||||||
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
|
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
|
||||||
struct device *dev);
|
struct device *dev);
|
||||||
struct dma_buf_attachment *
|
struct dma_buf_attachment *
|
||||||
|
Reference in New Issue
Block a user