C++ interface for udmabuf kernel module.
mkdir build
cd build
cmake ..
cmake --build .
ctest -V
- CMake-based project: as git submodule and connect via
add_subdirectory()
. Link withudmabufxx::udmabuxx
orudmabufxx::udmabufxx-static
- CMake-based project: system-wide installation via
find_package(udmabufxx)
. Link withudmabufxx::udmabufxx
orudmabufxx::udmabufxx-static
. - Generic project: via
pkg-config --cflags --libs udmabufxx
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.