Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) # SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) # (C) COPYRIGHT 2012-2013, 2020-2021 ARM Limited. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) # This program is free software and is provided to you under the terms of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) # GNU General Public License version 2 as published by the Free Software
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) # Foundation, and any use by you of this program is subject to the terms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) # of such GNU license.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) # This program is distributed in the hope that it will be useful,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) # but WITHOUT ANY WARRANTY; without even the implied warranty of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) # GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) # You should have received a copy of the GNU General Public License
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) # along with this program; if not, you can access it online at
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) # http://www.gnu.org/licenses/gpl-2.0.html.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) =====================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) dma-buf-test-exporter
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) =====================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) Overview
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) --------
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) The dma-buf-test-exporter is a simple exporter of dma_buf objects.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) It has a private API to allocate and manipulate the buffers which are represented as dma_buf fds.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) The private API allows:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) * simple allocation of physically non-contiguous buffers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * simple allocation of physically contiguous buffers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) * query kernel side API usage stats (number of attachments, number of mappings, mmaps)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) * failure mode configuration (fail attach, mapping, mmap)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) * kernel side memset of buffers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) The buffers support all of the dma_buf API, including mmap.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) It supports being compiled as a module both in-tree and out-of-tree.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) See include/linux/dma-buf-test-exporter.h for the ioctl interface.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) See Documentation/dma-buf-sharing.txt for details on dma_buf.