自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 资源 (11)
  • 收藏
  • 关注

原创 linux 启动 过程 学习 (x86_64)

1.   arch/x86/boot/header.S , kernel setup 从 _start开始。 设置 stack, bss, 最后跳转到 arch/x86/boot/main.c。2.  在main函数中,把kernel setup header 拷贝到 struct setup_header, 之后初console_init,  init_heap, validate_cpu,

2015-11-30 11:30:10 2318

转载 x86_64 函数调用约定

Registers galorex86 has just 8 general-purpose registers available (eax, ebx, ecx, edx, ebp, esp, esi, edi). x64 extended them to 64 bits (prefix "r" instead of "e") and added another 8(r8, r9,

2015-10-14 11:29:42 968

原创 gobject base class

1. 初始化总结Invocation timeFunction InvokedFunction's parametersRemarkFirst call tog_object_newfor target typetarget type's base_init functionOn the inher

2015-08-31 17:19:00 616

原创 gobject type system

1. Now, let's say we want to call the C function function_foo from a Python program. To do this, the Python interpreter needs to:Find where the function is located. This probably means fin

2015-08-31 16:01:07 447

原创 深入理解linux内核读书笔记(第十二章)

1.  VFS是linux的一个专门来处理和文件系统相关的系统调用的软件层。2. VFS支持的文件系统可分为三类:  (1) 基于磁盘的文件系统,ext2, ext3, vfat, ntfs, ISO9660, UDF, HFS等。  (2) 网络文件系统, nfs, cifs等  (3)特殊文件系统, proc等3. VFS的思想是引入一种的通用的文件模型,它可以表示所有支持

2015-07-31 16:58:26 690

原创 深入理解linux内核读书笔记(第十章)

1. 在执行系统调用时,内核一般返回0表示成功,负数表示失败。用户态的包装函数将内核返回的错误码取负,设置到errno中。2. 对于没有实现的系统调用,sys_call_table中会存放sys_ni_syscall函数,返回-ENOSYS。3. 进入系统调用有两种方法:(1) int 0x80(2) sysenter   退出也有两种方式:        (1) iret

2015-07-30 15:18:42 550

原创 深入理解linux内核读书笔记 (第四章)

1.  中断被分为同步中断和异步中断。同步中断是cpu在执行指令过程中触发的, 异步中断是其他硬件设备在任意时间所引发的。2. 英特尔手册中将同步中断称为异常,异步中断称为中断。3. 中断一般由外部io设备触发,异常一般分为两种:1. 由于程序错误引发。 2. 异常的执行情况或请求,例如页故障和系统调用。4.

2015-06-17 17:33:02 632

原创 深入理解linux内核读书笔记(第三章)

1.  进程是程序执行时的一个实例。2. 从内核的角度看,进程是系统进行资源分配的实体。3. linux 通过轻量级进程来支持多线程应用,每一个轻量级进程对应一个线程。   线程之间共享地址空间,打开的文件等资源,内核对每一个轻量级进程进行单独调度。4. 一个线程组包含了一组线程用来实现多线程应用,对于getpid,kill, _exit等系统调用,线程组作为一个整体。5. 内

2015-06-17 16:14:51 940

原创 The Art Of Unix Programming ---part 1

(i) Make each program do one thing well. To do a new job, build afresh ratherthan complicate old programs by adding new features.(ii) Expect the output of every program to become the input to anot

2015-06-16 16:43:06 655

原创 深入理解linux内核读书笔记(第九章)

1. 内核信赖自己,但是对于用户态的内存请求,内核会做必要的地址检查,然后先给进程分配地址空间(线性地址),真正的物理内存分配推迟到必要的时候才进行。2. 内核使用mm_struct 来描述用户的地址空间信息,所有的mm_struct 是用双向链表连接起来的,相邻的mm_struct 在mmlist域中表示,链表中的第一个元素是init_mm中mmlist指向的进程0的mm_struct。

2015-06-11 16:33:16 809

转载 gimp 常用快捷键

S代表Shift,C代表CTRL。table B.1:The Toolbox FunctionsTool nameKeystrokeFull Pathairbrush aImage:Tools/airbrushBezier Select bImage:Tools/Bezier SelectBlend lImag

2012-07-24 09:52:00 1878

原创 进程切换

2012-06-14 16:43:18 353

原创 进程调度策略

2012-06-14 12:12:05 249

原创 进程创建

2012-06-13 11:35:47 251

原创 进程调度

进程上下文和中断上下文Besides executing code on behalf of a user program, the kernel can also be activated by asynchronoushardware interrupts, and is then said to run in interrupt context. The main dif

2012-06-07 16:10:37 337

原创 编译gcc时关于工具链的调整

例如:把链接器指向/tools 目录中的版本SPECS=`dirname $(gcc -print-libgcc-file-name)`/specsgcc -dumpspecs | sed \  -e 's@/lib\(64\)\?/ld@/tools&@g' \  -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS

2012-04-28 09:18:49 437

原创 vim tips

Keyword LookupThe K command is designed to look up the selected text using the “man” command. Itworks just like the normal-mode K command except that it uses the highlighted textas the keyword.

2012-04-23 09:06:23 320

转载 bash 颜色控制

I. ANSI控制码:\e[0m           关闭所有属性\e[1m           粗体\e[4m           下划线\e[5m           闪烁\e[7m           反显\e[8m           消隐\e[22m          非粗体\e[24m          关闭下划线\e[25m

2012-04-20 09:16:32 538

转载 Vim 实用技术,第 3 部分: 定制 Vim

3.1. Vim 脚本基础在 .vimrc 文件中,和在第二章提到的插件和语法文件中,使用的语言就是 Vim 脚本语言。这种脚本语言语法有点像 BASIC,表达式有点像 C,还是比较容易理解的。本章中并不打算对其作很系统的介绍(要完整了解的话,请参见“:help usr_41.txt”),而只是介绍一些基本知识,特别是,了解定制 .vimrc 所需要的基本知识。Vim 脚本相当于可直接在命

2012-04-13 09:23:48 324

转载 Vim 实用技术,第 1 部分: 实用技巧

0. Vim 简介作为开源世界最重要的编辑器之一(另一个是 Emacs),Vim 以其强大的功能和可定制能力被众多开发者所喜爱。不过,也许就是因为 Vim 的功能太强大了,要真正用好 Vim 并不容易。本文作者在多年的实际使用中逐渐掌握了一些实用技术,在此介绍给大家。——本文并不企图对 Vim 作全面而系统的介绍,但也绝非零星地点到即止;而是希望通过介绍一些重要特性和提供相关参考信息,引起大家

2012-04-13 09:17:02 374

原创 VS2008 读写大文件

1. 打印__int64要用_tprintf("%lld");

2012-04-07 10:14:43 347

转载 Visual Studio TCHAR 对应的函数映射关系

The generic-text routine mappings are defined in TCHAR.H. _tccpy and _tclen map to functions in the MBCS model; they are mapped to macros or inline functions in the SBCS and Unicode models for compl

2012-04-07 08:34:58 798

原创 arm-linux-gcc(4.6.1)交叉编译工具链的建立

本文参考文献:http://cross-lfs.org/view/clfs-sysroot/arm/cross-tools/chapter.htmlhttp://blog.chinaunix.net/uid-436750-id-2123570.html感谢youbest的深刻分析!感谢Google!(额,怎么不感谢百度呢? 你懂的。。。)本文的疏漏和不足之处,还请大家慷慨指出,共同

2012-03-30 17:31:52 3218

原创 移植 u-boot 1.1.6 到 S3C2440 (nand 启动)

移植参考了韦东山编写的《嵌入式linux应用开发完全手册》,这真是一本不错的书!本次移植中因为想从nand启动,就没有修改nor flash的部分. 步骤1.我的开发板取名为s3c2440明,建立与开发板对应的目录和文件,由于s3c2440和smdk2410很相似,就直接复制一份.learnboy@debian:~/project/arm/u-boot-1.1.6$ c

2010-01-26 14:33:00 2859

Learning the bash Shell, Second Edition(英文版)chm

unix like系统上使用最广泛的shell----bash 本书写得很好,详细。值得一看。

2009-05-04

unix 环境高级编程(英文版)chm

Advanced Programming in the UNIX® Environment: Second Edition By W. Richard Stevens, Stephen A. Rago ............................................... Publisher: Addison Wesley Professional Pub Date: June 17, 2005 ISBN: 0201433079 Pages: 960

2009-05-04

FreeBSD handbook

FreeBSD 的官方文档。英文版。 FreeBSD Handbook The FreeBSD Documentation Project Copyright © 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The FreeBSD Documentation Project Welcome to FreeBSD! This handbook covers the installation and day to day use of FreeBSD 6.4-RELEASE and FreeBSD 7.1-RELEASE. This manual is a work in progress and is the work of many individuals. As such, some sections may become dated and require updating. If you are interested in helping out with this project, send email to the FreeBSD documentation project mailing list. The latest version of this document is always available from the FreeBSD web site (previous versions of this handbook can be obtained from http://docs.FreeBSD.org/doc/). It may also be downloaded in a variety of formats and compression options from the FreeBSD FTP server or one of the numerous mirror sites. If you would prefer to have a hard copy of the handbook, you can purchase one at the FreeBSD Mall. You may also want to search the handbook.

2009-05-04

MFC深入浅出

李进久老师写的,大家可以和侯捷的比较一下。个人认为还不错!

2008-01-10

Thinking in c++( 英文版txt)

学习C++ 必看的书,对学习C++很有帮助。

2008-01-08

傻瓜c++(TXT)

一本外国人写的十分有趣的C++入门书,值得一看。

2008-01-08

深入浅出MFC(txt,简体版)

侯捷的那本。比较经典。

2008-01-08

深入浅出MFC

李进久老师的书,大家可以和侯捷的对比一下。

2008-01-08

Devc++开发环境

一个小型的环境,特别适合学习之用。

2008-01-08

The C++ programming language(txt)

C++之父的经典著作,学习C++必看书籍。

2008-01-06

C++入门经典图书(TXT 格式英文版)。

一本非常适合初学者的C++教程,十分详细!!

2008-01-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除