kernel memory code learn】的更多相关文章

mem alloc page Noticeble: 1. there are two kind of page: virtual page, physical page. 2. the page struct is abstract of physical memory page, but not virtual memory! struct page { unsigned long flags; //page's status,eg: is dirty page or not? atomic_…
这是内核自带的文档,讲解ARM芯片的内存是如何布局的!比较简单,对于初学者可以看一下!但要想深入理解Linux内存管理,建议还是找几本好书看看,如深入理解Linux虚拟内存,嵌入系统分析,Linux内核分析及程序设计等:  Kernel Memory Layout on ARM Linux Linux在ARM平台上的内存布局 Russell King <rmk@arm.linux.org.uk>       November 17, 2005 (2.6.15) This document de…
kernel/Makefile 1 VERSION = 4 2 PATCHLEVEL = 4 3 SUBLEVEL = 21 4 EXTRAVERSION = 5 NAME = Blurry Fish Butt…
https://kernelnewbies.org/ http://www.tldp.org/LDP/lki/index.html https://kernelnewbies.org/ML https://kernelnewbies.org/Documents https://lwn.net/Articles/driver-porting/ http://www.tuxradar.com/content/newbies-guide-hacking-linux-kernel https://lwn…
kmalloc #include <linux/slab.h> void *kmalloc(size_t size,int flags); void kfree(void *addr); flags: GFP_ATOMIC: Used to allocate memory from interrupt handlers and other code outside of a process context.Never sleeps GFP_KERNEL: Normal allocation o…
How to compile and install Linux Kernel 5.1.2 from source code Compiling a custom kernel has its advantages and disadvantages. However, new Linux user/admin find it difficult to compile Linux kernel. Compiling kernel needs to understand few things an…
http://www.codemachine.com/courses.html#kerdbg Windows Kernel Internals for Security Researchers This course takes a deep dive into the internals of the Windows kernel from a security perspective. Attendees learn about behind the scenes working of va…
The Performance Zone is brought to you in partnership with New Relic. Quickly learn how to use Docker and containers in general to create packaged images for easy management, testing, and deployment of software. It has sometimes been suggested that S…
Summary Learn about the initial, low-level startup sequence and the hardware platform functions that are performed when the boot loader and OEM abstraction layer (OAL) are developed and the kernel is run. The startup sequence is an integral part of d…
信号量有一个很明显的缺点,没有区分临界区的读写属性,读写锁允许多个线程进程并发的访问临界区,但是写访问只限于一个线程,在多处理器系统中允许多个读者访问共享资源,但是写者有排他性,读写锁的特性如下:允许多个读者同时访问临界区,但是同一时间不能进入:同一时刻只允许一个写者进入临界区:读者和写者不能同时进入临界区.读写锁也有关闭中断和下半部的版本. RCU:read-copy-update   .................... 问题:rcu相比读写锁,解决了什么问题? rcu的基本原理? 1.…