fs/mmap: Update mmap documentation of possible return values

This commit is contained in:
Gustavo Henrique Nihei
2021-03-15 17:26:34 -03:00
committed by Xiang Xiao
parent 00d9f81919
commit ecb9e03a7f
+7 -5
View File
@@ -98,13 +98,15 @@
* ENOSYS * ENOSYS
* Returned if any of the unsupported mmap() features are attempted * Returned if any of the unsupported mmap() features are attempted
* EBADF * EBADF
* 'fd' is not a valid file descriptor. * 'fd' is not a valid file descriptor.
* EINVAL * EINVAL
* Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or * Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or
* contained both of these values. * contained both of these values.
* ENODEV * ENODEV
* The underlying filesystem of the specified file does not support * The underlying filesystem of the specified file does not support
* memory mapping. * memory mapping.
* ENOMEM
* Insufficient memory is available to map the file.
* *
****************************************************************************/ ****************************************************************************/