madvise()中MADV_USERFAULT标志的状态是什么? [英] What's the status of the MADV_USERFAULT flag in madvise()?

查看:65
本文介绍了madvise()中MADV_USERFAULT标志的状态是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经进行了一些讨论,以在madvise()中使用新标志来告诉内核不要在某些内存范围内处理页面错误: lwn.net-1 lwn.net-2

据我所知,此标志尚未找到通往内核源代码的路.

该作品的当前状态是什么?

解决方案

该社区从未使用MADV_USERFAULT前进.取而代之的是一种更强大的解决方案,称为userfaultfd,已进入内核. https://www.kernel.org/doc/Documentation/vm/userfaultfd.txt

There have been some discussions to use a new flag in madvise() to tell the kernel not to handle page faults in certain memory ranges: lwn.net-1, lwn.net-2

As far as I am able to see, this flag hasn't found its way to the kernel source.

What's the current status of this work?

解决方案

The community never went forward with MADV_USERFAULT. Instead, a more robust solution called userfaultfd has made its way into the kernel. https://www.kernel.org/doc/Documentation/vm/userfaultfd.txt

这篇关于madvise()中MADV_USERFAULT标志的状态是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆