criu/plugins/amdgpu/amdgpu_plugin_drm.h
Ramesh Errabolu 733ef96315 amdgpu_plugin: Refactor code in preparation to support C&R for DRM devices
Add a new compilation unit to host symbols and methods that will be
needed to C&R DRM devices. Refactor code that indicates support for
C&R and checkpoints KFD and DRM devices

Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
2024-09-11 16:02:11 -07:00

22 lines
478 B
C

#ifndef __AMDGPU_PLUGIN_DRM_H__
#define __AMDGPU_PLUGIN_DRM_H__
#include <dirent.h>
#include "common/list.h"
#include "xmalloc.h"
#include "criu-log.h"
#include "kfd_ioctl.h"
#include "amdgpu_plugin_util.h"
#include "amdgpu_plugin_topology.h"
/**
* Determines if VMA's of input file descriptor belong to amdgpu's
* DRM device and are therefore supported
*/
int amdgpu_plugin_drm_handle_device_vma(int fd, const struct stat *drm);
#endif /* __AMDGPU_PLUGIN_DRM_H__ */