mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
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:
parent
a904c192e6
commit
3b67904dbc
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue