Skip to content

h4tr3d/udmabufxx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UDMABUFXX

C++ interface for udmabuf kernel module.

Build

mkdir build
cd build
cmake ..
cmake --build .
ctest -V

Link to project

  1. CMake-based project: as git submodule and connect via add_subdirectory(). Link with udmabufxx::udmabuxx or udmabufxx::udmabufxx-static
  2. CMake-based project: system-wide installation via find_package(udmabufxx). Link with udmabufxx::udmabufxx or udmabufxx::udmabufxx-static.
  3. Generic project: via pkg-config --cflags --libs udmabufxx

Usage

udmabuf buf{"udmabuf0"};
auto ptr = reinterpret_cast<uint8_t*>(buf.get());
// some action from HW
// ...
buf.sync_to_cpu(0, buf.size()); // un-needed on x86_64
// access to `ptr`

For supported platforms see Supported platforms.

Releases

No releases published

Packages

No packages published