![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
eric_wang
图像算法
展开
-
Linux内核 kthread_run函数 理解学习
最近发现在内核创建线程的时候经常会用到kthread_run()这样的一个调用。于是准备拿出来学习一下。首先看看它的定义之处才发现它是一个宏函数,而不是一个真正意义上的函数。在include/linux/Kthread.h里有/*** kthread_run - create and wake a thread.* @threadfn: the function to run un转载 2012-12-25 09:14:34 · 11815 阅读 · 0 评论 -
使用klogctl接口离线保存android kernel log
源文件如下,通过修改dmesg文件,借用klogctl接口将LOG保存到文件中。 明天让手机开机后自动调用该程序。#include <stdlib.h>#include <unistd.h>#include <stdio.h>#include <errno.h>#include <sys/klog.h>#include <string.h>#define FALLBACK_KLOG_B原创 2016-05-05 23:46:14 · 4217 阅读 · 0 评论 -
Linux 网络编程 TCP
(一)Linux网络编程--网络知识介绍Linux网络编程--网络知识介绍客户端和服务端 网络程序和普通的程序有一个最大的区别是网络程序是由两个部分组成的--客户端和服务器端. 客户端 在网络程序中,如果一个程序主动和外面的程序通信,那么我们把这个程序称为客户端程序。 比如我们使用ftp程序从另外一 个地方获取文件的时候,是我们的转载 2013-10-10 17:56:30 · 1052 阅读 · 0 评论 -
Linux下http协议实现
http://blog.chinaunix.net/uid-677314-id-189340.html#include stdio.h>#include stdlib.h>#include string.h>#include sys/types.h>#include sys/socket.h>#include errno.h>转载 2013-10-09 23:00:03 · 947 阅读 · 0 评论 -
陀螺仪和加速度计
加速度计和陀螺指南分类: 多传感器融合 2013-07-02 10:43 71人阅读 评论(0)收藏 举报本帖翻译自IMU(加速度计和陀螺仪设备)在嵌入式应用中使用的指南。这篇文章主要介绍加速度计和陀螺仪的数学模型和基本算法,以及如何融合这两者,侧重算法、思想的讨论介绍本指南旨在向兴趣者介绍惯性MEMS(微机电系统)传感器,特别是加速度计和陀螺仪转载 2013-10-10 10:02:17 · 2507 阅读 · 1 评论 -
SCons使用说明
转自:http://550480286.blog.163.com/blog/static/99093247201077113029413/介绍,scons用的是python语法。需要安装python和scons后才能运行,能够跨平台。比较automake自动生成makefile文件,scons可以认为直接是make的功能,因为只需要执行scons命令就等于执行了make的功能。现在有一转载 2013-07-22 08:26:04 · 5592 阅读 · 1 评论 -
Kernel panic - not syncing: Attempted to kill init!
移植2.6.32.2内核到mini2440上面发现Kernel panic - not syncing: Attempted to kill init! 导致系统无法启动解决办法Kernel Features --->[*] Use the ARM EABI to compile the kernel [*]原创 2013-06-15 10:41:09 · 1063 阅读 · 0 评论 -
Ubuntu 12.04编译kernel,make menuconfig错误
执行make menuconfig的时候报如下错误eric@eric-OptiPlex-380:~/work/linux_3.9.5/linux-3.9.5$ make menuconfig HOSTLD scripts/kconfig/mconfscripts/kconfig/mconf.o: In function `show_help':mconf.c:(.text+0x原创 2013-06-10 15:55:53 · 1681 阅读 · 0 评论 -
PATCH_ERIC
#!/bin/bashCur_Dir=$(pwd)echo $Cur_Dircd $Cur_Dirfilelist=`ls /tmp/000*`for file in $filelistdo echo $file git apply $file git add . && git commit . -m $file sleep 2done原创 2016-12-17 07:32:09 · 451 阅读 · 0 评论