/linux/memobj-r0drv-linux.c:1165:33: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you/linux/memobj-r0drv-linux.c:1192:29: error: ‘struct mm_struct’ has no member named ‘mmap_sem’; did you
一个linux内核的新手问题。mmap手册页说明".. otherwise, it shall return a value of MAP_FAILED and set errno to indicate the error..."
我在/usr/src/linux/mm/mmap.c下查找了mmap的内核代码,但我找不到mmap返回MAP_FAILED的位置。
linux系统调用mmap(2)和posix mmap(3)函数有什么区别?如何区分在浏览源代码时使用的是哪一个,因为它们有相同的头file.For细节,见下文。至少,我认为一些posix函数是由linux实现的。#log for "man 2 mmap"
MMAP(2) Linux Programmer's ManualThe Linux implementation of this interface may dif