1 2 3 4 5 6 7 8 9 10 11 12
#ifndef _LIBVGEM_H_ #define _LIBVGEM_H_ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int drm_open_vgem(void); int create_vgem_bo(int fd, size_t size); void *mmap_vgem_bo(int fd, int handle, size_t size); #endif