Linux USB drivers
Linux USB驱动开发技术,国外的资料,比较新,很实用。
Using the POSIX API - Threads, real-time and IPC
In Linux, when a new process is created, it already contains a thread, used to execute the main() function
Additional threads can be created using the pthread library, which is part of the C library
Of course all threads inside a given process will share the same address space, the same set of open files, etc.
The pthread library also provide thread synchronization primitives: mutexes and conditions
This pthread library has its own header : pthread.h
Applications using pthread function calls should be explicitly linked with the pthread library
gcc o app app.c lpthread
The GRUB Bootloader
全面讲述Grub引导Linux原理,国外的资料,值得一读。
New features in Linux-2.6
虽然Linux早已到了3.8时代,但是2.6内核非常经典,在嵌入式行业依然被广泛应用。这部slides专为嵌入式开发人员而写。
Embedded Linux Driver Development
嵌入式Linux驱动开发,英文版,极好的slides。例子精简,条理分明,对于Linux驱动开发者十分受用。
Headers specific to the Linux kernel: <linux/xxx.h>
No access to the usual C library, we're doing kernel programming
An initialization function
Called when the module is loaded, returns an error code (0 on success, negative value on failure)
Declared by the module_init() macro: the name of the function doesn't matter, even though modulename_init() is a convention.
A cleanup function
Called when the module is unloaded Declared by the module_exit() macro.
Metadata informations declared using MODULE_LICENSE(), MODULE_DESCRIPTION() and MODULE_AUTHOR()
《架构之美》
架构师必备!比如facebook的架构设计
Linux内核源代码情景分析
极力推荐的一本书,1500页的深入源码分析!
《游戏编程指南》---包含各种游戏编程技术,快来下载吧
《游戏编程指南》
导 读
在开始阅读全文之前,希望你能抽出一些时间阅读这里的内容…
一、你想编一个怎样的游戏?
(1)星际争霸,帝国时代,英雄无敌,大富翁4,轩辕剑3,传奇,石器时代…
这些都是正宗的2D游戏,其标志是:视角完全固定或只有四个观察方向。这些游戏中特效不多,即使有也不需要使用汇编进行加速。
推荐阅读:第1、2、3、4、5章及第12章的相关部分。
可选阅读:第7、8章。如果需要网络功能,需阅读第11章。
(2)暗黑2,秦殇…
这是一类比较特殊的2D游戏,其特点在于各种特效(半透明,光影效果等)的大规模使用。有的此类游戏还可以使用3D加速卡来加速2D特效。
推荐阅读:第1、2、3、4、5、6章及第12章的相关部分。
可选阅读:第7、8、9、10章。如果需要网络功能,需阅读第11章。
由于现在的显卡几乎都能很好地支持3D加速功能,所以如果你打算放弃对没有3D加速卡的计算机的支持,可不阅读第4、5、6章,而推荐阅读第9章和第10章的第1、2节。
(3)反恐精英,雷神,魔兽争霸3,地牢围攻,FIFA,极品飞车,MU…
这些都是纯3D游戏,也代表了目前游戏的发展趋势。
推荐阅读:第1、2、3、7、9、10章及第12章的相关部分。
可选阅读:第8章。如果需要网络功能,需阅读第11章。