os-linux-lkd2-ulk3
google_lover
这个作者很懒,什么都没留下…
展开
-
The lists of TASK_RUNNING processes 2
相应结构原创 2011-09-08 11:45:48 · 870 阅读 · 0 评论 -
Wait queues
3.2.4. How Processes Are OrganizedThe runqueue lists group all processes in a TASK_RUNNING state. When it comes to grouping processes in o原创 2011-09-08 12:30:01 · 1013 阅读 · 0 评论 -
arm下 线性地址到物理地址映射图示
可能有错,更新中。。。arm下的linux(256MB sdram start from 0x3000 0000 to 0x3FFF FFFF)mini2440 一般 64MB 3000 0000---33FF FFFF原创 2011-09-18 22:25:05 · 1237 阅读 · 0 评论 -
网址收藏 自旋锁
http://blog.csdn.net/vividonly/article/details/6594195假如持有自旋锁时进程的时间片用完了的话,是该如何来处理呢?在单处理机上,spin_lock()就退化成了Preemp_disable(),它就是禁止抢占,即虽然时间片用完了,但是仍然是不能切换到其它进程去的。因此每个进程有一个preemp_count这个变量,如果这个变量为0的话原创 2011-09-05 17:44:34 · 786 阅读 · 0 评论 -
list_entry , container_of
/*refer tohttp://blog.csdn.net/yinkaizhong/article/details/4093795*/[root@localhost chapter15]# cat test.c #includestruct student{ char name[20]; char sex;}stu={"zhangsan",'m'};main()转载 2011-08-31 17:19:50 · 738 阅读 · 0 评论 -
x86下 线性地址到物理地址映射图示
可能有错,更新中。。。x86下的linux粗线表示此范围的物理内存与此范围的线性空间是一一映射的细线表示此范围的物理页框可以映射到此范围的线性空间1.进程线性地址空间:用户进程的页面优先从ZONE_HIGTMEM分配,但也可以从其他2.直接映射区:最大896MB,动态映射区最小120MB有下面几个用于获取页框并返回一个位于直接映射区的线性地址的函数(④返回p原创 2011-09-18 21:25:15 · 1731 阅读 · 0 评论 -
进程页表图示
可能有错,更新中。。。用2级页表将用户空间的0-3G线性地址映射到256MBSDRAM的物理地址3000 0000-3FFF FFFF中2^10=1024=0x400 2^12=4096=0x1000 2^14=16384=0x40001个页目录-->覆盖3GB物理内存范围(可以4GB)1个页目录项-->1个页表-->覆盖4MB物理内存范围1个页表项-->1个物理页原创 2011-09-17 14:44:06 · 7666 阅读 · 4 评论 -
linux内核栈,内核同步,用户空间线程同步
在论坛上浏览到一个帖子,是说内核栈的问题的,一时却感到有点陌生了,下面总结一下http://topic.csdn.net/u/20121101/10/86479004-2f2c-491c-bc43-03cc0e087588.html?694191.内核栈原创 2012-11-01 05:20:34 · 1588 阅读 · 0 评论 -
总是优先级最高的在执行
7.4.4.4. Actions performed by schedule( ) to make the process switchNow the schedule( ) function has determined the next process to run.原创 2011-09-08 15:56:10 · 1118 阅读 · 0 评论 -
普通进程的时间片用完后
7.4.1.2. Updating the time slice of aconventional processIf the current process is a conventional process, the scheduler_tick( ) function原创 2011-09-08 15:25:56 · 4743 阅读 · 0 评论 -
内核控制路径,内核同步,中断,异常--x86
******************************************************************************************************************************************************1.6.1. The Process/Kernel Model.......Unix k原创 2011-09-07 17:23:05 · 5665 阅读 · 4 评论 -
内核页表图示
可能有错,更新中。。。如果是 arm 256MB sdram at 3000 0000-3FFF FFFF1.内核线性地址需要覆盖整个物理内存,这样才能达到他管理的目的,如某个进程页表映射到了物理页框0x3000 0000,通过内核页表也可以映射到此页框2.如果从原创 2011-09-18 21:23:23 · 2887 阅读 · 0 评论 -
3.2.2.4. The process list
3.2.2.4. The process listThe first example of a doubly linked list we will examine is theprocess list, a list that links together all ex原创 2011-09-07 19:55:39 · 649 阅读 · 0 评论 -
bitmap
*************************************************************************************************************pidmap_array bitmapWhen rec原创 2011-09-07 19:24:48 · 672 阅读 · 0 评论 -
task_struct structure
3.2. Process DescriptorFigure 3-1. The Linux process descriptor/*include/linux/sched.h,linux2.6.32.2*/struct task_struct { volatile转载 2011-09-07 19:19:32 · 3162 阅读 · 0 评论 -
1.6.2. Process Implementation,进程切换时
1.6.2. Process ImplementationTo let the kernel manage processes, each process is represented by aprocess descriptor that includes inform转载 2011-09-07 17:18:14 · 914 阅读 · 0 评论 -
CPL DPL
2.2.1. Segment Selectors and Segmentation RegistersTo make it easy to retrieve segment selectors quickly, the processor providessegmentati转载 2011-09-07 18:37:23 · 925 阅读 · 0 评论 -
list_head structure
3.2.2.3. Doubly linked lists A new list is created by using the LIST_HEAD(list_name) macro. It declares a new variable named list_name o原创 2011-09-07 19:31:01 · 681 阅读 · 0 评论 -
The lists of TASK_RUNNING processes 1
3.2.2.5. The lists of TASK_RUNNING processesWhen looking for a new process to run on a CPU, the kernel has to consider only the runnable p原创 2011-09-08 10:06:24 · 827 阅读 · 0 评论 -
shedule()调用时机
schedule()的调用意味着一个进程从cpu上拉下来,另一个进程即将获得时间片7.4.4. The schedule( ) FunctionThe schedule( ) function implements the scheduler. Its objecti原创 2011-09-08 17:15:31 · 1142 阅读 · 0 评论 -
进程上下文 中断上下文 / 用户空间 内核空间
进程上下文和中断上下文是操作系统中很重要的两个概念,这两个概念在操作系统课程中不断被提及,是最经常接触、看上去很懂但又说不清楚到底怎么回事。造成这种局面的原因,可能是原来接触到的操作系统课程的教学总停留在一种浅层次的理论层面上,没有深入去研究。处理器总处于以下状态中的一种:转载 2011-09-01 18:50:32 · 844 阅读 · 0 评论 -
linux 2.6.32 sytem call for arm
/* * arch/arm/include/asm/unistd.h * * Copyright (C) 2001-2005 Russell King * * This program is free software; you can redistribute i原创 2011-08-31 20:48:12 · 1005 阅读 · 0 评论 -
im6q linux 瘦身计划-减少启动时间
1.内核启动时的打印控制kernel/printk.cint console_printk[4] = { DEFAULT_CONSOLE_LOGLEVEL, /* console_loglevel */ DEFAULT_MESSAGE_LOGLEVEL, /* default_message_loglevel */ MINIMUM_CONSOLE_LOGLEVEL, /* min原创 2014-12-02 10:24:52 · 3656 阅读 · 0 评论