plugins/amdgpu: Clarify open_img_file docstring

Docstring refers to size_t as 8-byte value while in reality this is
architecture dependent. Clarify it.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
This commit is contained in:
Tvrtko Ursulin 2026-04-15 10:21:51 +01:00 committed by Alexander Mikhalitsyn
parent a904c192e6
commit 3b67904dbc
No known key found for this signature in database
GPG key ID: B1F47F5CB05B4FA3

View file

@ -223,11 +223,11 @@ int write_fp(FILE *fp, const void *buf, const size_t buf_len)
/**
* @brief Open an image file
*
* We store the size of the actual contents in the first 8-bytes of
* the file. This allows us to determine the file size when using
* criu_image_streamer when fseek and fstat are not available. The
* FILE * returned is already at the location of the first actual
* contents.
* We store the size of the actual contents at the start of the file. (Note that
* the size of this field is architecture dependent!). This allows us to
* determine the file size when using criu_image_streamer when fseek and fstat
* are not available. The FILE * returned is already at the location of the
* first actual contents.
*
* @param path The file path
* @param write False for read, true for write