Article Title: How is the Linux kernel module transferred to the kernel ?. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Lsmod reads the/proc/modules file to check which kernel m
Read the platinum file written by the sibling in the 2.4 kernel.
IptablesAdd a module and try it in the 2.6 kernel. After one and a half days of hard work, refer to the platinum article,
Finally succeeded, write it down and share it with the Cu guys, my system is fedora2 + linux-2.6.5-1.358
1. Install the kernel source code.[Root @ jiecho] # Yum install
This series of articles prepared by Zhang tonghao, reproduced please note the Source: http://blog.csdn.net/muge0913/article/details/7480929
Email: muge0913@sina.com
Because the kernel does not distinguish between processes and threads, kernel threads are also called Kernel processes ). Note that threads in common processes cannot be considered as processes.
Dif
Kernel synchronizationSynchronous introductionThe concept of synchronizationCritical section: Also known as the critical segment, is the code snippet that visits and operates shared data.Competition conditions: 2 or more than 2 threads are running at the same time in a critical section, which constitutes a competitive condition.So-called synchronization. In fact, to prevent the formation of competitive conditions in the critical area.Assuming that the
First, How does the Linux kernel organize the files in each directory tree and compile them? and build a kernel with specific features as needed? in theLinuxin the kernel, there are two types of files:Makefile,Kconfig. The two files are distributed in the various levels of the kernel directory (each level corresp
Tag:linux kernel cat>/etc/sysctl.confNet.ipv4.ip_forward = 0 means to turn on the routing function, 0 is off, 1 is onnet.ipv4.conf.all.rp_filter=1 is "tell" kernel enhanced inbound filtering (ingress filtering) and outbound filtering (egress filtering)Net.ipv4.conf.default.rp_filter = 1 Turn on reverse path filteringnet.ipv4.conf.default.accept_source_route = 0 packages that handle passive routesKERNEL.SY
Linux kernel has a very powerful function is to dynamically load the module, the module in this case is actually a kernel-supported applet. Before we actually get into the Linux kernel world, we can go through an addiction and load a kernel module on our own.
Since the module is the program, we first write a small prog
Recently, FC 10 (fedora10) was installed on the machine (x86_64). to install the virtual machine, first install VM 6.5. It was found that it was very difficult to install VM 6.5 in 64-Bit mode for three days, give up. Some people say that the 64-bit VM under FC 10 cannot be installed. As a result, I switched to Sun's Virtual Machine Software virtualbox. On the official virtualbox website, I found the rpm version of fedora9/10 corresponding to x86_64. I read a lot of posts on how to install it. A
My kernel upgrade is from 2.6.32.5 to 2.6.38.2.
The beginning of these sections is followed by the following article:
http://blog.csdn.net/ctbinzi/article/details/6006931
Install the required software first, and download the latest kernel:#apt-get Install kernel-package libncurses5-dev wget bzip2 make patch#cd/USR/SRC#wget http://www.kernel.org/pub/linux/
Kernel and kernel modules: Depmod,lsmod,modinfo,insmod,rmmod,mdprobeFirst, we need to know where the kernel and kernel modules are placed. Kernel:/boot/vmlinuz or/boot/vmlinuz-version; kernel decompression required RAMDISK:/BOOT/I
0.12 kernel memory management is relatively simple rough, the kernel only uses a page directory, can only map 4G of linear space, so each process of virtual space (logical space) can only give 64M, up to 64 processes; Each process has a corresponding task number NR, when a process needs to allocate process space, The linear start address of the process space can be obtained only by multiplying nr by 64M. Th
First, let's talk about how this problem came about. (When analyzing a technology, we should first consider what problems it wants to solve, or when learning new knowledge, what is the purpose of this knowledge ).
When compiling the kernel, I found a file named vmlinux. LDS. s under the arch/ARM/kernel directory. At first glance, do you want to compile a file? It seems that it is not. So what does it do?
instructions in the critical section are executed continuously, and may be executed in the critical section half way, Because the scheduler is preempted or interrupted, the CPU does not continue to execute within the critical zone, which means the execution is interrupted.But that still guarantees the avoidance of competitive conditions, the reason is that if a process outside of the interrupted process is scheduled, the process will have to access the critical section, the lock or semaphore, a
The Linux 2.4 kernel provides a better description than the kernel-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. Module Subsystem, Unified Device Model, and PnP support Module Subsystem have undergone major changes.
2. Improved Stability
To completely prevent the
Linux Architecture:Knowledge: Linux architecture is divided into user space and kernel spaceWhat is the reason for dividing into user space and kernel space? Protect the operating system so that the application and the kernel have different permissions. Create different levels for different codes ...Kernel space and us
Press the power supply, click it, start the computer, and then the BIOS screen will pop up. After a while, the GRUB interface will pop up, and a line after line of characters will pop up on the black screen, from time to time there are OK words. oh, don't worry. Enter your username and password ,.... The system is successfully started. So what happened in this process and what are worth learning? This article describes the relationship between the boot loader,
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the Linux kernel programming, 10 days will defini
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the Linux kernel programming, 10 days will defini
Review 1.中断上下文的切换——保存现场恢复现场Main course content of this section introduction to Linux kernel source code1. Open the Kernel source code pagearch/目录:支持不同CPU的源代码;其中的X86是重点init/目录:内核启动相关的代码基本都在该目录中(比如main.c等)start_kernel函数就相当于普通C程序的main函数kernel/目录:Linux内核核心代码在kernel目录中Readme介绍了什么是Linux,Linux能够在哪些硬件上运行,如何安装内核源代码等Construct a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.