- 博客(21)
- 资源 (9)
- 收藏
- 关注
原创 glib g_log && Keep env(export) for sudo
These days, I used glib for coding and g_log to output debug logs. Several problems encoutered.1) How to make eclipse support glib building.$ sudo apt-get install glib2-*eclipse -> project -> P
2013-08-30 14:36:10 1276
转载 BSD Sockets API
转载: http://wiki.treck.com/Introduction_to_BSD_SocketsThe Berkeley Sockets 4.4 API (Applications Programmer Interface) is a set of standard function calls made available at the application level.
2013-08-30 09:21:54 1278
原创 socket 编程 之 select
参考文章 http://blog.csdn.net/user_920/article/details/7671308/* * socket_server.c * * Created on: Aug 29, 2013 * Author: qiang */#include #include #include #include #include #inc
2013-08-29 17:43:13 797
转载 linux非阻塞式socket编程之select()用法
http://blog.csdn.net/wypblog/article/details/6826286 这篇文章很详细的讲解了 linux BSD socket下如何使用 select.Select在Socket编程中还是比较重要的,可是对于初学Socket的人来说都不太爱用Select写程序,他们只是习惯写诸如 connect、accept、recv或recvfrom这样的阻塞程序(所谓
2013-08-29 10:54:25 1224
原创 < Python >xmlrpclib
http://docs.python.org/2.7/library/xmlrpclib.html?highlight=serverproxy#xmlrpclib.ServerProxyPython document 讲述了如何使用 Python版的 xmlrpclib, NoteThe xmlrpclib module has been renamed toxm
2013-08-28 17:07:36 2279
原创 linux ping
参考 http://blog.csdn.net/qy532846454/article/details/5429700 学习 自己实现 linux ping 命令,本文主要总结实现过程中的几个重要知识点。PingPro.c/* * Realize ping command * * ================================================
2013-08-22 10:44:16 1454
原创 Milestone/A853/XT702/umts_sholes Compile your own Android ROM and Customize your own linux kernel
本文讲述 如何为自己的 Motolora Milestone/umts_sholes/A853/XT702 编译 Android CM ROM, 从此以后可以自己轻松定制 Android ROM,喜欢玩kernel 的可以尽情修改自己的kernel。1) 下载 umts_sholes Android CM 源代码使用 https://github.com/nadlabak/android
2013-08-19 09:16:35 1890
原创 Android HAL 硬件抽象层分析
1) 在分析 Android HAL 硬件抽象层之前,首先在看一下 Android 系统架构图:HAL 层是干什么的呢,参考 https://groups.google.com/forum/#!topic/android-porting/_696kIx9pTc 可以有很好的理解:Think of the HAL as a published API for functionalit
2013-08-14 14:21:12 1734
原创 Android 4.3 Native code (C/C++) 交叉编译 + 移植 busybox 到Android 4.3 emulator
Android 用的是 Bionic C, 而不是通常的glibc,因此简单使用交叉工具链并不能够编译出适合运行在android 设备上的 C/C++ 程序。交叉工具链可以很轻松在 Android 源码 prebuilts 目录下找到,但是直接编译会提示找不到各种标准库的头文件,需要指定 Bionic C库 的 sysroot.像 Tiny 6410 开发板带的Android toolch
2013-08-14 10:36:58 1783
原创 Android emulator
使用 Android emulator 有两种方式,1) Android SDK , 2) 自己 repo sync Android 源代码,编译,运行 emulator.1). SDK emulatora). 将 一下路径加入到环境变量:/tools这是为了使用 android 和 emulator 这两个可执行文件,分别用于创建 emulator 和运行。b
2013-08-13 16:43:37 2088
原创 < Android 4.3 源代码下载 > Android repo sync 源代码附常见问题解决方法
首先参考 Android 官网上关于 sync 源代码的描述:http://source.android.com/source/downloading.htmlTo install Repo:Make sure you have a bin/ directory in your home directory and that it is included in your
2013-08-10 22:28:01 3016
原创 < Linux Kernel > Notification Chain
A notification chain is simply a list of functions to execute when a given event occurs. Each function lets oneother subsystem know about an event that occurred within, or was detected by, the subsy
2013-08-09 15:37:22 1128
原创 < Linux Kernel > Measuring Time
The kernel often needs to measure how much time has passed since a given moment. For example, a routinethat carries on a CPU-intensive task often releases the CPU after a given amount of time. It wi
2013-08-08 15:09:31 1138
原创 < Linux Kernel > Compile-Time Optimization for Condition Checks
Most of the time, when the kernel compares a variable against some external value to seewhether a given condition is met, the result is extremely likely to be predictable. This ispretty common, fo
2013-08-08 09:44:42 742
原创 < Linux Kernel > Garbage Collection
Memory is a shared and limited resource and should not be wasted, particularly in the kernelbecause it does not use virtual memory. Most kernel subsystems implement some sort ofgarbage collection
2013-08-08 09:23:34 1070
原创 < Linux Kernel > Reference Counts
When a piece of code tries to access a data structure that has already been freed, the kernel isnot very happy, and the user is rarely happy with the kernel's reaction. To avoid those nastyproblem
2013-08-08 09:18:28 952
转载 < NET > MAC
转载:http://baike.baidu.com/view/32702.htm#sub4924694Media Access Control媒体介入控制层,属于OSI模型中数据链路层下层子层。介质访问控制它定义了数据帧怎样在介质上进行传输。在共享同一个带宽的链路中,对连接介质的访问是“先来先服务”的。物理寻址在此处被定义,逻辑拓扑(信号通过物理
2013-08-07 15:45:18 688
转载 < NET > PHY
转自:http://baike.baidu.com/view/727826.htmPHY指物理层,OSI的最底层。 一般指与外部信号接口的芯片。 以太网PHY芯片 。小小的不起眼但又无处不在的网卡。如果在5年前,或许网卡与您无关,但在如今这网络的时代,无论是上网冲浪还是联网玩游戏,都离不开网卡,更何况,就算您不食人间烟火,多数主板上也会为您集成一块板载网卡。所以,对于想
2013-08-07 15:01:26 707
原创 mtdoops
module_init(mtdoops_init);static int __init mtdoops_init(void)向workstruct &cxt->work_erase 注册延期执行函数 INIT_WORK(&cxt->work_erase, mtdoops_workfunc_erase); INIT_WORK(&cxt->work_write, mtd
2013-08-05 17:48:11 3127 1
原创 Linux Kernel workqueue 工作队列
工作队列是将操作延期执行的另一种手段。每个工作队列都有一个数组,数组项的数目与系统中处理器的数目相同。 每个数组项都列出了将延期执行的任务。对每个工作队列来说,内核都会创建一个新的内核守护进程,延期任务使用等待队列机制,在该守护进程的上下文中执行。新的工作队列通过调用 create_workqueue 或 create_workqueue_singlethread 函数来创建。
2013-08-05 16:20:01 1187
转载 shell中多行变一行的方法
http://hi.baidu.com/newhand2010/item/6ca487a9de836731030a4d9f文本内容:$cat test.txt0010020030040050060000999 需要格式化成:001 002 003 004 005 006 0000999 方法一、最好的答案是waker老大提供的,就不解释了:xargs dolph
2013-08-03 23:22:58 4760
OpenEmbedded User Manual .pdf
2013-04-10
Linux.PowerPC详解-核心篇
2013-04-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人