Unix-system-calls-mincore
提供:Dev Guides
[top]#
|http://www.google.com/[Google] | a|
Web | This Site |
選択した読書 Copyright©2014 by finddevguides |
[cols=",,,,,,,",] |
| | Home | | References | | Discussion Forums | | About TP
[width="100%",cols="100%",] |
a| == mincore()-Unix、Linuxシステムコール
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] image:http://www.finddevguides.com/add- this.gif [AddThisソーシャルブックマークボタン]
広告
NAME
mincore-ページがコアにあるかどうかに関する情報を取得する
概要
- #include <unistd.h> * *#include <sys/mman.h> *
- int mincore(void * start 、size_t length 、unsigned char *vec *);
説明
返り値
成功すると、 mincore ()はゼロを返します。 エラーの場合、-1が返され、_errno_が適切に設定されます。
エラー
Tag | Description |
---|---|
EFAULT | vec points to an invalid address |
EINVAL | start is not a multiple of the page size. |
*ENOMEM * | len is greater than (TASK_SIZE - start). (This could occur if a negative value is specified for len, since that value will be interpreted as a large unsigned integer.) In Linux 2.6.11 and earlier, the error* EINVAL* was returned for this condition. |
ENOMEM | address to address + length contained unmapped memory, or memory not part of a file. |
BUGS
これまで(Linux 2.6.5)、 mincore ()はMAP_PRIVATEマッピングの正しい情報を返しません。
準拠
歴史
可用性
Linux 2.3.99pre1およびglibc 2.2以降。
関連項目
[[File:]] image :http://www.finddevguides.com/images/next.gif [next] [[File:]]
広告
|
[cols="^",] |
|Advertisements