_脚本中要访问的全局和内核变量的声明。
Declarations for global and kernel variables accessed in the script.
内核变量仅限于内存中驻留的变量。
put_user函数则将内核变量(var)指定的值移动到用户空间地址(ptr)。
The put_user function moves the value that the kernel variable (var) specifies into the user-space address (PTR). The functions return zero on success.
由此,提出一种动态更新内核变量的方法,使内核不需要重启便可以意识到配置的变化。
When the static config file is changed, the kernel can't realize the change until kernel is rebooted, so a method to update kernel variables dynamically without kernel rebooting is advanced.
但是理解任何内核的最关键要素是内核的映射,它提供符号信息(比如函数、变量以及它们的地址)。
But an important element of understanding any kernel is the map of the kernel, which provides symbol information (such as functions and variables as well as their addresses).
kgdb可帮助在内核代码中放置断点,这样您就可以逐步通过断点来观察变量。
KGDB helps to place breakpoints in kernel code, so you can step through it and observe the variables.
安装完这个程序包后,确保您的 $PATH环境变量中有 /opt/cross/bin,以使得在内核编译过程中可以使用这个程序包中的工具。
Once you have installed this package, make sure that /opt/cross/bin is part of your $PATH environment variable so the tools in the package will be accessible during the kernel build process.
内核提供了用于per - CPU锁定和变量动态分配的其他函数。
The kernel provides other functions for per-CPU locking and dynamic allocation of variables.
当然要说明的是,电量消耗记录要涉及到很多变量(手机硬件,ROM,内核等等),而且也不会有2个机器耗电完全一样,但我描述的电量使用趋势是现代手机所共有的。
While many variables are involved (phone hardware, ROM, kernel, etc) and no two devices will perform exactly the same, the trends that I will describe are becoming more common in new phones.
这些条目的形式与GRUB Legacy不同,其目的一样:每一个定义单独的操作系统或启动变量,如不同的Linux内核。
The form of these entries is different from those for GRUB Legacy, but the purpose is the same: Each defines a single operating system or boot variant, such as a different Linux kernel.
kdb允许用户控制内核代码的执行(包括内核扩展和设备驱动器),并观察和修改变量和寄存器。
KDB allows the user to control execution of kernel code (including kernel extensions and device drivers), and to observe and modify the variables and register.
通过设置这个环境变量,连接器将认为2.4内核运行旧的LinuxThreads模型。
By setting this variable, the linker assumes that a 2.4 kernel is running along with the older LinuxThreads model.
在Linux内核中,时间由一个名为jiffies的全局变量衡量,该变量标识系统启动以来经过的滴答数。
In the Linux kernel, time is measured by a global variable named jiffies, which identifies the number of ticks that have occurred since the system was booted.
出于此原因,2.6内核引入了per - CPU变量的概念,这些变量与单个CPU相关联。
For this reason, the 2.6 kernel introduced the concept of per-CPU variables that are associated with a single CPU.
出于此原因,2.6内核引入了per - CPU变量的概念,这些变量与单个CPU相关联。
For this reason, the 2.6 kernel introduced the concept of per-CPU variables that are associated with a single CPU.
应用推荐