2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00
criu/plugins/amdgpu/amdgpu_plugin_drm.h
Ramesh Errabolu 0d5923c95e amdgpu_plugin: Refactor code used to implement Checkpoint
Refactor code used to Checkpoint DRM devices. Code is moved
into amdgpu_plugin_drm.c file which hosts various methods to
checkpoint and restore a workload.

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

29 lines
729 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);
/**
* Serialize meta-data about a particular DRM device, its number of BOs,
* etc into a file. The serialized filename has in it the value ID that
* is passed in as a parameter
*/
int amdgpu_plugin_drm_dump_file(int fd, int id, struct stat *drm);
#endif /* __AMDGPU_PLUGIN_DRM_H__ */