海王  

随笔分类 -  android kernel 基础

  • 一个关于AM335X比较全面的笔记博客
    摘要:http://www.eefocus.com/marianna/blog/cate_18142_0.html 阅读全文
    posted @ 2016-12-02 14:03 海王 阅读(719) 评论(0) 推荐(0) 编辑
  • 为AM335x移植Linux内核主线代码(35)使用platform中的GPIO
    摘要:http://www.eefocus.com/marianna/blog/15-02/310352_46e8f.html 使用GPIO,当然可以自己编写驱动,比如之前的第34节,也可以使用Kernel中的platform方法,它对资源的管理更加方便。为了理解platform工作的过程,需要先来看看m 阅读全文
    posted @ 2016-12-02 13:56 海王 阅读(1594) 评论(0) 推荐(0) 编辑
  • kenrnel 驱动中常用的宏
    摘要:http://blog.csdn.net/uruita/article/details/7263290 1. MODULE_DEVICE_TABLE (usb, skel_table);该宏生成一个名为__mod_pci_device_table的局部变量,该变量指向第二个参数。内核构建时,depm 阅读全文
    posted @ 2016-12-02 10:40 海王 阅读(509) 评论(0) 推荐(0) 编辑
  • ARM Linux 3.x的设备树(Device Tree)
    摘要:http://blog.csdn.net/21cnbao/article/details/8457546 宋宝华 Barry Song <21cnbao@gmail.com> 1. ARM Device Tree起源 Linus Torvalds在2011年3月17日的ARM Linux邮件列表宣称 阅读全文
    posted @ 2016-12-02 10:21 海王 阅读(1373) 评论(0) 推荐(0) 编辑
  • Device Tree Usage( DTS文件语法)
    摘要:http://elinux.org/Device_Tree_Usage Device Tree Usage Top Device Tree page This page walks through how to write a device tree for a new machine. It is 阅读全文
    posted @ 2016-11-30 18:52 海王 阅读(747) 评论(0) 推荐(0) 编辑
  • Linux CPU Hotplug CPU热插拔
    摘要:http://blog.chinaunix.net/uid-15007890-id-106930.html CPU hotplug Support in Linux(tm) Kernel Linux支持CPU的热插拔功能 Maintainers: CPU Hotplug Core: Rusty Ru 阅读全文
    posted @ 2016-10-13 15:27 海王 阅读(8417) 评论(0) 推荐(1) 编辑
  • Makefile 中@是什么意思
    摘要:http://bbs.chinaunix.net/thread-1916415-1-1.htmllinux源码的顶级Makefile中有这么一句$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make... 阅读全文
    posted @ 2015-03-14 15:40 海王 阅读(7430) 评论(0) 推荐(1) 编辑
  • make/makefile中的加号+,减号-和at号@的含义
    摘要:http://www.crifan.com/order_make__makefile_in_the_plus__minus_-_and_at_the_meaning_of_numbers/在看makefile,其中有些依赖规则中的命令行前面,会有一些减号“-”或者at符号“@”,比如:distcle... 阅读全文
    posted @ 2015-03-14 15:25 海王 阅读(12053) 评论(0) 推荐(3) 编辑
  • linux udp 单播组播广播实现
    摘要:http://blog.csdn.net/zuokong/article/details/7548008多播广播是用于建立分步式系统:例如网络游戏、ICQ聊天构建、远程视频会议系统的重要工具。使用多播广播的程序和UDP向单个介绍方发送信息的程序相似。区别在于多播广播程序使用特殊的多播IP地址。 1、组播和广播需要在局域网内才能实现,另外得查看linux系统是否支持多播和广播:# ifconfig UP BROADCAST MULTICAST MTU:1500 跃点数:1说明该网卡支持 2、发送多播包的主机需要设置网关,否则运行sendto()会出现"network is unreac 阅读全文
    posted @ 2012-08-22 14:17 海王 阅读(17138) 评论(1) 推荐(1) 编辑
  • Linux input子系统 io控制字段
    摘要:http://blog.csdn.net/guoshaobei/archive/2010/08/06/5792635.aspxinclude/linux/input.h #define EVIOCGVERSION _IOR('E', 0x01, int) /* get driver version */#define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */#define EVIOCGREP _IOR('E', 0x03, int[2]) /* get rep 阅读全文
    posted @ 2011-02-12 19:53 海王 阅读(9944) 评论(0) 推荐(2) 编辑
  • Eclipse的代码提示背景是黑色
    摘要:Eclipse的代码提示背景是黑色的,这样就看不到提示内容了。网上查了下,原来是跟ubuntu默认的主题有点冲突,修改一下就好了。 【解决方案】 为了解决这个问题,当然要改掉Ubuntu主题中Tooltip的背景色了。可以在下面的菜单中找到: system-apperance preferences-customize...-colors - tooltips 的background或者选择一种其他的风格:clearlooks 阅读全文
    posted @ 2011-02-08 14:44 海王 阅读(4463) 评论(0) 推荐(0) 编辑
  • c++ 命名空间(name space) 用法
    摘要:http://www.cppblog.com/qianqian/archive/2008/08/26/60070.aspx关键字namespace定义了一个名字空间,里面的变量和函数,声明在此名字空间外使用须在前面加名字空间名称.例如: #includeiostream.hnamespace my{int a=3;}class test{public:int a;test(){a=1;}void fb(){int a=0;cout(my::a)(test::a)a;}};int main(){test t;t.fb();return 0;} 类名也可以做为此类的名字空间来使用, 阅读全文
    posted @ 2011-02-06 18:38 海王 阅读(3438) 评论(0) 推荐(0) 编辑
  • android 属性系统使用的小问题
    摘要:http://blog.csdn.net/njhao/archive/2010/10/11/5932635.aspx原理说明:http://www.williamhua.com/2010/03/05/android-property-system/ 注意点 System.getProperty只能访问process自有的property如需访问System Property,需要利用反射机制调用SystemProperty.get view plaincopy to clipboardprint?publicstaticintgetInt(Stringkey,intdef){try{//th 阅读全文
    posted @ 2011-01-31 00:52 海王 阅读(530) 评论(0) 推荐(0) 编辑
  • Android 的属性系统(翻译)
    摘要:http://www.hiapk.com/bbs/thread-6389-1-1.html由于对Android 的属性系统不是很了解,所以翻译了这篇文章《Android Property System》 。 每个属性都有一个名称和值,他们都是字符串格式。属性被大量使用在Android系统中,用来记录系统设置或进程之间的信息交换。属性是在整个系统中全局可见的。每个进程可以get/set属性。 在系统初始化时,Android将分配一个共享内存区 来存储的属性。这些是由“init”守护进程完成的,其源代码位于:device/system /init。“init”守护进程将启动一个属性服务。属性 阅读全文
    posted @ 2011-01-31 00:49 海王 阅读(596) 评论(0) 推荐(0) 编辑
  • android 属性系统代码分析
    摘要:Android为了储存关于全局系统设置的信息,使用了一个系统属性公共缓冲区,这个缓冲区的内容是(属性,值)对的列表,对外提供get和set服务。可以说,属性区域相当于一般应用的配置文件。 属性系统首先得有个固定地址空间,在system/core/init/init.c里调用property_init()函数初始化。在system/core/init目录下有property_service.c和property_service.h两个文件予以这个属性系统的支持,属性系统使用的存储空间是通过android的内存管理系统ashmem 来分配的。其中system/core/init/init.c中用到 阅读全文
    posted @ 2011-01-31 00:46 海王 阅读(2127) 评论(0) 推荐(0) 编辑
  • dlopen 使用范例
    摘要:库代码:[代码]编译命令:gcc -shared -o hello.so hello.c使用库的代码:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#includestdio.h#includestdlib.h#includedlfcn.hintmain(intargc,char**argv){void*handle;void(*callfun)();char*error;handle=dlopen("/root/tmp/hell 阅读全文
    posted @ 2011-01-28 17:47 海王 阅读(8973) 评论(2) 推荐(1) 编辑
  • dlopen(3) - Linux man page
    摘要:http://linux.die.net/man/3/dlopenName dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym - programming interface to dynamic linking loader Synopsis #include dlfcn.h void *dlopen(const char *filename, int flag); char *dlerror(void); void *dlsym(void *handle, const char *symbol); int dlclose(void *hand 阅读全文
    posted @ 2011-01-28 17:40 海王 阅读(1748) 评论(0) 推荐(0) 编辑
  • C++ dlopen mini HOWTO 中译版
    摘要:http://www.linuxsir.org/bbs/printthread.php?t=266890C++ dlopen mini HOWTO 中译版 [原创] C++ dlopen mini HOWTO 作者:Aaron Isotton aaron@isotton.com 2006-03-16 译者:Lolita@linuxsir.org 2006-08-05------------------------------------------------ 摘要   如何使用dlopen API动态地加载C++函数和类 ---------------------- 阅读全文
    posted @ 2011-01-28 16:02 海王 阅读(421) 评论(0) 推荐(0) 编辑
  • linux C 字符串转换
    摘要:atof(将字符串转换成浮点型数) 相关函数 atoi,atol,strtod,strtol,strtoul表头文件 #include stdlib.h定义函数 double atof(const char *nptr);函数说明 atof()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负符号才开始做转换,而再遇到非数字或字符串结束时('\0')才结束转换,并将结果返回。参数nptr字符串可包含正负号、小数点或E(e)来表示指数部分,如123.456或123e-2。返回值 返回转换后的浮点型数。附加说明 atof()与使用strtod(nptr,(char**)NULL) 阅读全文
    posted @ 2011-01-04 16:25 海王 阅读(12021) 评论(0) 推荐(0) 编辑
  • C 字符串操作函数集
    摘要:http://blog.minidx.com/2008/02/03/469.html http://nengxia.com/clib/string/strchr.html 字符串函数集合描述 C语言不像Java,Php之类的高级语言,对象中直接封装了字符串的处理函数。C语言中进行普通的字符串处理也经常会让我们焦头烂额……不过好在C语言中还是提供了像strtok这样功能强大的字符串处理函数,可以帮我们实现部分需要的功能。下面我们介绍一下strtok函数的用法以及具体的使用例。 原型:char *strtok(char *s, char *delim);功能:分解字符串为一组字符串。s为要分解的字 阅读全文
    posted @ 2010-12-31 17:24 海王 阅读(5405) 评论(0) 推荐(2) 编辑

 
点击右上角即可分享
微信分享提示