gpt4 book ai didi

c++ - 是否有像 : is the memory readonly or accesible by current process? 这样的运行时断言

转载 作者:太空宇宙 更新时间:2023-11-04 03:46:01 25 4
gpt4 key购买 nike

是否有任何运行时断言:内存是只读的还是当前进程可以访问内存?(我对内核模式断言更感兴趣)

最佳答案

是的,but don't use it.

当然,内核中不存在“当前进程”的概念。通常,“当前进程”类似于对象的 this 指针,它是一种隐藏变量。谈论内核中的“当前进程”就像谈论 main 中的 this - 它只是不存在。

关于c++ - 是否有像 : is the memory readonly or accesible by current process? 这样的运行时断言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24362107/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com