原创 android QC Memory Map
■高通芯片android系統的memory map: Instructions to generate Memory Map Memory map is divided into three major areas: No
原创 【Linux kernel】Timing
Droidphone: http://blog.csdn.net/droidphone/article/category/1263459 timer /** * getnstimeofday - Returns the time
原创 ARM指令
指令細節可以參考arm官方具體架構版本的手冊,如: 《DDI0406C_b_arm_architecture_reference_manual(ARMv7-A and ARMv7-R edition).pdf》 -> "A8:Instru
原创 高速緩存
L i n u x系統使用了幾種涉及到高速緩存的內存管理方法。 1 緩衝區高速緩存 緩衝區高速緩存中保存着塊設備驅動程序所用到的數據緩衝區。 這些緩衝區的大小固定,一般包括從塊設備中讀入的和將要寫入到塊設備中的信息塊。快設備一次只能處
原创 等待隊列的使用
----------等待隊列的使用---------- 1.DEFINE_WAIT(wait); //定義當前進程的等待隊列wait #define DEFINE_WAIT_FUNC(name, function) \ wai
原创 [深度優先遍歷—棧實現]求圖中兩點是否連通
#include "stdio.h" //深度優先遍歷算法 //求圖中起點s到終點e的路徑是否存在。圖中的每個點至多有2個發出點。圖以有向邊(0,1)的形式給出. 圖中不存在環。 //輸入數據 //1 16(casenumber和邊的數目
原创 【Linux kernel】進程相關
//sched.h --------------------------------------- 以下代碼是關於task_struct->state的: * * Task state bitmask. NOTE! These bi
原创 arm上ldrex和strexeq指令用來嘗試獲取獨佔內存權限和設置在獨佔權限時回寫
【duan注】關於LDREX 和 STREX這兩對指令的具體使用方法,及其作用(獨佔訪問存儲器),請查看 DUI0204IC_rvct_assembler_guide.pdf 手冊的148頁。 __raw_spin_loc
原创 [Linux kernel]系統sleep
//以下是進入sleep的關鍵入口 lpm_cpuidle_enter(,fromidle)或 lpm_suspend_enter(,fromidle) ->lpm_enter_low_power() ->lpm_cpu_prepar