破坏用户空间意味着什么? [英] What does it mean to break user space?

查看:91
本文介绍了破坏用户空间意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个简单的问题,但是我听说在内核上工作的唯一规则是您不要破坏用户空间".所以我想知道这是什么意思:破坏用户空间以及它是如何发生的?

This may be a simple question but, I heard that the only rule in working on the kernel is that you don't break "user space". So I was wondering what that means: To break user space and how does it happen?

编辑

已经向我指出,此问题不适用于@lurker的堆栈溢出",因此我将按照@lurker的建议将其移至超级用户". (请参见下文)

It has been pointed out to me that this question is not suited for Stack Over Flow by @lurker so I will move it to Super User as @lurker suggests. (See below)

关于通用计算硬件和软件的问题对于Stack Overflow来说是没有意义的,除非它们直接涉及主要用于编程的工具.您也许能够获得有关超级用户的帮助." –潜行者,jww,SilentKiller

推荐答案

您指的是Linus Torvald的内核开发的第一个规则.本说明对此进行了解释: https://lkml.org/lkml/2012/12/23/75 . ,在维护内核时,请勿做会破坏用户程序/应用程序的事情.换句话说,在进行内核更改时,在用户的应用程序空间"中引起问题是非常不好的.从字面上看,这并不意味着记忆.这意味着任何以某种方式对用户应用程序产生影响的方式都将对其行为产生负面影响(导致程序出现故障).我引用的笔记还表示至少一个示例.

You're referring to Linus Torvald's first rule of kernel development. This note explains it: https://lkml.org/lkml/2012/12/23/75. I.e., when maintaining the kernel, do not do something which breaks user programs/applications. In other words, when making kernel changes, it is very bad to cause problems in the user's application "space". That doesn't literally mean memory. That means anything that impacts the user applications in a way that negatively affects its behavior (causes the program to malfunction). The note I cite also indicates at least one example.

这篇关于破坏用户空间意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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