易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux initial RAM disk (initrd) overview


Linux initial RAM disk (initrd) overview
Learn about its anatomy, creation, and use in the Linux boot process
M. Tim Jones
(mtj@mtjones.com
), Consultant Engineer, Emulex
M. Tim Jones is an embedded software architect and the author of GNU/Linux Application Programming
, AI Application Programming
, and BSD Sockets Programming from a Multilanguage Perspective
.
His engineering background ranges from the development of kernels for
geosynchronous spacecraft to embedded systems architecture and
networking protocols development. Tim is a Consultant Engineer for
Emulex Corp. in Longmont, Colorado.
Summary:
  The Linux® initial RAM disk (initrd) is a temporary
root file system that is mounted during system boot to support the
two-state boot process. The initrd contains various executables and
drivers that permit the real root file system to be mounted, after
which the initrd RAM disk is unmounted and its memory freed. In many
embedded Linux systems, the initrd is the final root file system. This
article explores the initial RAM disk for Linux 2.6, including its
creation and use in the Linux kernel.
What's an initial RAM disk?
The initial RAM disk (initrd)
is an initial root file system that is mounted
prior to when the real root file system is available. The initrd is bound to the
kernel and loaded as part of the kernel boot procedure. The kernel then mounts
this initrd as part of the two-stage boot process to load the modules
to make the real file systems available and get at the real root
file system.
The initrd contains a minimal set of directories and executables to achieve
this, such as the insmod
tool to install kernel modules
into the kernel.
In the case of desktop or server Linux systems, the initrd is a transient
file system. Its lifetime is short, only serving as a bridge to the real
root file system. In embedded systems with no mutable storage, the initrd
is the permanent root file system. This article explores


相关文档:

实战Linux Bluetooth编程(六) L2CAP编程实例

例一:发送Signaling Packet:
Signaling Command是2个Bluetooth实体之间的L2CAP层命令传输。所以得Signaling Command使用CID 0x0001.
多个Command可以在一个C-frame(control frame)中发送。
 如果要直接发送Signaling Command.需要建立SOCK_RAW类型的L2CAP连接Socket。这样才有机会自己填充Command Code,Identi ......

Linux编程札记

1.“/bin”、“/sbin”、“/usr/bin”、“/usr/sbin”、“/usr/local/bin”等路径已经在系统环境变量中了,如果可执行文件   在这几个标准位置,在终端命令行输入该软件可执行文件的文件名和参数,回车即可。
2.如果不在标准位置,文件名前面需要加上完整的 ......

linux目录操作函数[转UC]

转自:
http://blog.chinaunix.net/u2/63316/showart_547992.html
Linux下的目录是依照标准来实作的,因此,您可以毫无问题地移殖到任何其它UNIX平台。  
--------------------------------------------------------------------------------
getcwd/getwd : 取得目前所在目录  
--------------- ......

Linux环境下用c语言写的播放wav文件的小程序

本程序可以读取.wav文件,然后进行播放。
确认方法:cat /etc/sndstat,如果显示无此设备,则没有安装驱动。
#include <unistd.h>#include <fcntl.h>#include <sys/types.h>#include <sys/ioctl.h>#include <stdlib.h>#include <stdio.h>#include&nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号