Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完成 headers_install.md 的翻译 #69

Merged
merged 3 commits into from
May 10, 2024

Conversation

RutingZhang0429
Copy link
Member

No description provided.

headers are usually installed at the default location /usr/include and
the kernel headers in subdirectories under that (most notably
/usr/include/linux and /usr/include/asm).
"make headers_install" 命令以适合用户空间程序使用的形式导出内核的头文件。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可使用``来适应markdown

build). It takes two optional arguments:
内核头文件向后兼容,但不向前兼容。这意味着使用旧内核头文件和C库构建的程序可以在新内核上运行(尽管它可能无法访问新功能),但使用新内核头文件构建的程序可能无法在旧内核上运行。

"make headers_install" 命令可以在内核源代码的顶层目录中运行(或使用标准的树外构建)。它接受两个可选参数:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上注释

to the current architecture. The linux/asm directory of the exported
kernel headers is platform-specific, to see a complete list of supported
architectures use the command:
ARCH 指示为其生成头文件的架构,默认为当前架构。导出内核头文件的 linux/asm 目录是基于特定平台的,要查看支持架构的完整列表,使用以下命令:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

指示在这里翻译有些奇怪,翻译为”表明“吧

to the current architecture. The linux/asm directory of the exported
kernel headers is platform-specific, to see a complete list of supported
architectures use the command:
ARCH 指示为其生成头文件的架构,默认为当前架构。导出内核头文件的 linux/asm 目录是基于特定平台的,要查看支持架构的完整列表,使用以下命令:

ls -d include/asm-* | sed 's/.*-//'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个位置也可以使用markdown语法进行一下调整,是shell语法


ls -d include/asm-* | sed 's/.*-//'

INSTALL_HDR_PATH indicates where to install the headers. It defaults to
\"./usr\".
INSTALL_HDR_PATH 指示要安装头文件的位置。默认为 "./usr"。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个句话,可以用逗号”,“代替

An \'include\' directory is automatically created inside
INSTALL_HDR_PATH and headers are installed in
\'INSTALL_HDR_PATH/include\'.
内核头文件导出基础设施由 David Woodhouse <<dwmw2@infradead.org>> 维护。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个转义符应该是需要的吧,你可以看一下自己仓库的markdown渲染结果

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个comment不用修改,我看渲染的结果正好是使用markdown的语法<>,然后里面的邮箱被搞成了mailto:XXX,这样也挺好的

@mudongliang
Copy link
Member

最后,如果你后面要提交内核那边的中文翻译,要遵守的是内核那边的翻译准则。如果嫌麻烦的话,我可以去提交内核补丁

@RutingZhang0429
Copy link
Member Author

已根据存在问题进行修改

@mudongliang mudongliang merged commit bdd1a12 into hust-open-atom-club:master May 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants