Kernel/zh-cn

尽管 Gentoo 是一个基于 Linux 或 FreeBSD 的自由操作系统，并且 FreeBSD 有它自己的内核,因为一些原因，这篇文章只介绍 Linux 内核的相关内容.

Linux 内核是操作系统的核心，提供了程序访问硬件的接口. 内核包含了绝大多数的设备驱动.

USE 旗标
要构建内核，必须先安装内核源码归档. 对于桌面系统来说，我们推荐使用. 它由 Gentoo 开发者维护，提供修复安全漏洞，功能问题，以及兼容少见的系统架构所需的补丁.

安装（Emerge）
安装 :

可选的其它内核
Gentoo 官方 Portage 树中还有许多可选的内核源码归档：


 * - 官方的，没有打过补丁的 Linux 内核源代码. 注意因为它们是 Linux 官方内核，不包含任何来自 Gentoo 的补丁，并不会受到来自 Gentoo 的支持.
 * - 增强了安全方面的Gentoo 内核源码归档.

来源概述

 * Kernel sources overview: Most, if not all, of the kernel sources packages available in Gentoo are detailed in the kernel sources overview article. Navigate there for further knowledge on specific kernel sources available in the main Gentoo repository.

Searching all alternatives
A full list of kernel sources with short descriptions can be found by searching with :

Configuration

 * Automatic configuration: is a tool used to automate the build process of the kernel and initramfs. The goal of genkernel is to help users through the kernel building process.


 * 手工配置: 手工配置使得用户——通过一些努力——可以创建一个定制的内核配置.


 * Gentoo kernel configuration guide: Gentoo's kernel configuration guide.


 * Kernel security: Instructions for securing the kernel.


 * Upgrade: 通过已有的内核配置升级新内核.


 * Removal: 如何移除旧的内核.


 * Kernel Seeds: Like the option above, Kernels Seeds help the user, with some effort, create a custom-fit kernel configuration using an existing as a base.


 * 2.4 to 2.6 Migration: Migration guide from Linux 2.4 to Linux 2.6. Since the Linux kernel codebase has significantly moved past 2.6, these migration steps are no longer relevant, but may be useful for helping administrators understand.

参考

 * The kernel category - All the kernel related articles on the wiki.

外部资源

 * planet.kernel.org/ - Blogs related to the Linux kernel.
 * kernelhub.org/ - A site dedicated to kernel statistics.
 * kernelnewbies.org/ - "A site for aspiring Linux kernel developers who work to improve their Kernels and more experienced developers willing to share their kernel knowledge."