Skip to content

Calderweis/mem-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NVIDIA DMA-BUF Export/Import Proof-of-Concept

This directory contains a minimal proof-of-concept (POC) demonstrating:

  1. Allocation of a NVIDIA buffer object using the NVIDIA kernel driver.
  2. Export of that buffer object as a file descriptor (fd).
  3. Import of the fd into the NVIDIA DRM driver as a GEM object.
  4. Export of the GEM object as a DMA-BUF fd.
  5. Inter-process sharing: one process allocates and exports, another imports and reads.

Structure

  • exporter.c: Allocates and exports the buffer, sends the DMA-BUF fd to another process.
  • importer.c: Receives the DMA-BUF fd, maps and reads the buffer.
  • fd-passing.h/c: Helper for passing fds over UNIX domain sockets.
  • Makefile: Build instructions.

Requirements

  • NVIDIA proprietary driver and access to /dev/nvidia* and /dev/dri/renderD*.
  • Root or appropriate permissions.

Usage

  1. Build: make
  2. Run exporter in one terminal: ./exporter
  3. Run importer in another terminal: ./importer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors