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
* Returned if any of the unsupported mmap() features are attempted
* EBADF
* 'fd' is not a valid file descriptor.
* 'fd' is not a valid file descriptor.
* EINVAL
* Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or
* contained both of these values.
* Length is 0. flags contained neither MAP_PRIVATE or MAP_SHARED, or
* contained both of these values.
* ENODEV
* The underlying filesystem of the specified file does not support
* memory mapping.
* The underlying filesystem of the specified file does not support
* memory mapping.
* ENOMEM
* Insufficient memory is available to map the file.
*
****************************************************************************/