dma-buf-test-exporter.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. # (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
  3. #
  4. # This program is free software and is provided to you under the terms of the
  5. # GNU General Public License version 2 as published by the Free Software
  6. # Foundation, and any use by you of this program is subject to the terms
  7. # of such GNU licence.
  8. #
  9. # A copy of the licence is included with the program, and can also be obtained
  10. # from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  11. # Boston, MA 02110-1301, USA.
  12. #
  13. #
  14. =====================
  15. dma-buf-test-exporter
  16. =====================
  17. Overview
  18. --------
  19. The dma-buf-test-exporter is a simple exporter of dma_buf objects.
  20. It has a private API to allocate and manipulate the buffers which are represented as dma_buf fds.
  21. The private API allows:
  22. * simple allocation of physically non-contiguous buffers
  23. * simple allocation of physically contiguous buffers
  24. * query kernel side API usage stats (number of attachments, number of mappings, mmaps)
  25. * failure mode configuration (fail attach, mapping, mmap)
  26. * kernel side memset of buffers
  27. The buffers support all of the dma_buf API, including mmap.
  28. It supports being compiled as a module both in-tree and out-of-tree.
  29. See include/linux/dma-buf-test-exporter.h for the ioctl interface.
  30. See Documentation/dma-buf-sharing.txt for details on dma_buf.