用户模式与内核模式下的回调函数 [英] Callback function in user mode vs kernel mode

查看:94
本文介绍了用户模式与内核模式下的回调函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么建议在用户模式和内核模式下运行回调函数?

Why is it advisable to run callback functions in user mode vs kernel mode?

推荐答案

唯一应在内核模式下执行的代码是已加载到受保护以限制内核模式访问的页面中的代码.

The only code that should execute in kernel mode is that which has been loaded into pages that are protected to restrict kernel mode access.

如果您可以执行内核模式回调函数,则将打开各种安全漏洞的门.

If you could execute a kernel mode callback function, that would open the door to all kinds of security holes.

这篇关于用户模式与内核模式下的回调函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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