![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux内核相关
文章平均质量分 70
gxfan
平平淡淡,从从容容
展开
-
Motherboard Chipsets and the Memory Map
本文系转载,原文地址:http://duartes.org/gustavo/blog/post/motherboard-chipsets-memory-map I’m going to write a few posts about computer internals with the goal of explaining how modern kernels work. I hope转载 2008-09-23 10:10:00 · 2342 阅读 · 3 评论 -
通过unregister_filesystem()函数学习linux单链表操作
通过unregister_filesystem()函数学习linux单链表操作基础介绍 在linux内核中,每一种注册了的文件系统都由一个类型为file_system_type的结构体来代表,该结构体中含有一个类型为file_system_type*的域next,linux正是通过这个next域把所有注册了的文件系统连接起来的,同时,linux还定义了一个指向链表中第一个元素的全局指针f原创 2008-10-15 15:14:00 · 1327 阅读 · 0 评论 -
linux内核常用宏学习——BUILD_BUG_ON
/* Force a compilation error if condition is true */#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])如果条件为真则引起一个编译时错误。原创 2008-09-27 11:30:00 · 5801 阅读 · 0 评论 -
e820简介
本文系转载,原文地址:http://wangcong.org/blog/?p=320,其中附录部分为本人所加... e820是和BIOS的一个中断相关的,具体说是int 0x15。之所以叫e820是因为在用这个中断时ax必须是0xe820。这个中断的作用是得到系统的内存布局。因为系统内存会有很多段,每段的类型属性也不一样,所以这个查询是“迭代式”的,每次求得一个段。 我们看内核源代转载 2008-09-22 15:54:00 · 16425 阅读 · 1 评论 -
Linux启动代码分析
本文系转载,原文地址:http://blog.chinaunix.net/u/6071/showart_205152.htmlLinux启动代码分析Kernel: 2.6.10-rc2Finished: 01/01/05/* * Activate the first processor. */asmlinkage void __init start_kernel转载 2008-09-22 15:00:00 · 3587 阅读 · 1 评论 -
INT 15h系列介绍
本文系转载,原文地址:http://www.uruk.org/orig-grub/mem64mb.htmlINT 15h, AX=E820h - Query System Address MapReal mode only.This call returns a memory map of all the installed RAM, and of physicalmemo转载 2008-09-22 16:33:00 · 10115 阅读 · 2 评论 -
How Computers Boot Up
本文系转载,原文地址:http://duartes.org/gustavo/blog/post/how-computers-boot-upThe previous post described motherboards and the memory map in Intel computers to set the scene for the initial phases of boot. B转载 2008-09-23 14:35:00 · 1529 阅读 · 0 评论 -
Linux代码阅读之header.S(一)
以下源代码来源于linux2.6.26.5的arch/x86/boot/header.S/* * header.S * * Copyright (C) 1991, 1992 Linus Torvalds * * Based on bootsect.S and setup.S * modified by more people than can be co原创 2008-09-24 17:07:00 · 3872 阅读 · 1 评论 -
The Kernel Boot Process
本文系转载,原文地址:http://duartes.org/gustavo/blog/post/kernel-boot-processThe previous post explained how computers boot up right up to the point where the boot loader, after stuffing the kernel image into转载 2008-09-23 14:44:00 · 2979 阅读 · 0 评论 -
linux内核空间访问文件系统代码实现
本文代码是从互联网收集而来,我记录下来主要为学习方便,版权归原作者所有。以下代码实现了在linux内核空间打开、读、写文件等相关函数,有兴趣的可以研究一下并在此基础上扩展。 #include #include #include #include #include #include #include /* file I/O in kernel module*/转载 2008-10-28 17:34:00 · 4110 阅读 · 0 评论