linux-kernel - 常量类似 "VM_RESERVED"和 3.9.6 中的 nopage 方法

标签 linux-kernel linux-device-driver

找不到 VM_RESERVED常数和 nopage 3.9.6 中的方法(在 vm_operations_struct 中)。它们在 3.9.6 中的替代品是什么?

最佳答案

the patch removing VM_RESERVED ,作者有这样的建议:

A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA, currently it lost original meaning but still has some effects:

 | effect                 | alternative flags
-+------------------------+---------------------------------------------
1| account as reserved_vm | VM_IO
2| skip in core dump      | VM_IO, VM_DONTDUMP
3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP

Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.


vm_ops->nopage被替换为 vm_ops->faultthis patch .

关于linux-kernel - 常量类似 "VM_RESERVED"和 3.9.6 中的 nopage 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17311450/

相关文章:

linux - Linux 中的 fwrite()、write()、pwrite()、fread()、read()、pread()、fsync() 有什么区别?

linux-kernel - 从内核空间访问 GPIO

c - 此代码片段如何在 I2C Controller 中工作

测试在任何目标板上运行的 Linux 内核模块/驱动程序

c - Linux 设备驱动程序中的内联函数

c - EXPORT_SYMBOL 在一个方向上导致 undefined reference ,但在另一个方向上没有(重定位截断)

linux - 定时器中断是否与系统处于内核模式或用户模式无关?

Linux SLAB_CTOR_VERIFY 和缓存未声明

linux - 有没有办法找出特定 Raspberry Pi 内核的确切源代码树

linux - 如何在FC18中安装CUDA 5.5驱动?