Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/28.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C 嵌入式linux中的页面大小_C_Linux_Memory Management_Kernel - Fatal编程技术网

C 嵌入式linux中的页面大小

C 嵌入式linux中的页面大小,c,linux,memory-management,kernel,C,Linux,Memory Management,Kernel,如何查找模块中分配的页面大小(以字节为单位)? 我知道它是4KB、8KB或16KB,但我想知道以字节为单位的确切大小。您可以使用库调用 使用\u SC\u PAGESIZE作为参数将返回环境的页面大小 或者,您可以检查内核的page.h源代码,它还应该告诉您页面大小

如何查找模块中分配的页面大小(以字节为单位)? 我知道它是4KB、8KB或16KB,但我想知道以字节为单位的确切大小。

您可以使用库调用

使用
\u SC\u PAGESIZE
作为参数将返回环境的页面大小

或者,您可以检查内核的
page.h
源代码,它还应该告诉您页面大小