dma-buf: DMABUF_MOVE_NOTIFY should depend on DMA_SHARED_BUFFER
[linux-2.6-microblaze.git] / drivers / dma-buf / Kconfig
index 4e16c71..de5a17c 100644 (file)
@@ -42,6 +42,7 @@ config UDMABUF
 config DMABUF_MOVE_NOTIFY
        bool "Move notify between drivers (EXPERIMENTAL)"
        default n
+       depends on DMA_SHARED_BUFFER
        help
          Don't pin buffers if the dynamic DMA-buf interface is available on
          both the exporter as well as the importer. This fixes a security
@@ -72,6 +73,17 @@ menuconfig DMABUF_HEAPS
          allows userspace to allocate dma-bufs that can be shared
          between drivers.
 
+menuconfig DMABUF_SYSFS_STATS
+       bool "DMA-BUF sysfs statistics"
+       select DMA_SHARED_BUFFER
+       help
+          Choose this option to enable DMA-BUF sysfs statistics
+          in location /sys/kernel/dmabuf/buffers.
+
+          /sys/kernel/dmabuf/buffers/<inode_number> will contain
+          statistics for the DMA-BUF with the unique inode number
+          <inode_number>.
+
 source "drivers/dma-buf/heaps/Kconfig"
 
 endmenu