1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * DMA-BUF sysfs statistics.
5 * Copyright (C) 2021 Google LLC.
8 #ifndef _DMA_BUF_SYSFS_STATS_H
9 #define _DMA_BUF_SYSFS_STATS_H
11 #ifdef CONFIG_DMABUF_SYSFS_STATS
13 int dma_buf_init_sysfs_statistics(void);
14 void dma_buf_uninit_sysfs_statistics(void);
16 int dma_buf_stats_setup(struct dma_buf *dmabuf);
18 void dma_buf_stats_teardown(struct dma_buf *dmabuf);
21 static inline int dma_buf_init_sysfs_statistics(void)
26 static inline void dma_buf_uninit_sysfs_statistics(void) {}
28 static inline int dma_buf_stats_setup(struct dma_buf *dmabuf)
33 static inline void dma_buf_stats_teardown(struct dma_buf *dmabuf) {}
35 #endif // _DMA_BUF_SYSFS_STATS_H