![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
air_snake
这个作者很懒,什么都没留下…
展开
-
Linux下如何动态加载,卸载库
1)程序中include # 2)调用dlopen ("libtest.so", RTLD_LAZY);3)编译的时候加–ldl例如:void* handle = dlopen ("libtest.so", RTLD_LAZY); void (*test)() = dlsym (handle, "my_function"); (*test)(); dlclose (ha原创 2007-05-23 22:40:00 · 4772 阅读 · 0 评论 -
Linux ALSA 驱动及其应用心得汇总
首先,主要参看的网上的资料就是ALSA的官方主页以及一些博客。1.驱动部分Linux ALSA声卡驱动之一:ALSA架构简介Linux ALSA声卡驱动之二:声卡的创建Linux ALSA声卡驱动之三:PCM设备的创建Linux ALSA声卡驱动之四:Control设备的创建Linux ALSA声卡驱动之五:移动设备中的ALSA(ASoC)Lin原创 2013-03-03 20:08:35 · 1020 阅读 · 0 评论 -
How to avoid "sudo minicom"
sudo adduser MyUser dialoutsudo chmod a+rw /dev/ttyUSB0原创 2013-02-26 13:17:13 · 356 阅读 · 0 评论 -
uBuntu下emacs配置及其嵌入式环境搭建
这是我在github上所存储的配置及其uBuntu环境的搭建。git://github.com/sheepjxx/emacs_config.gitEmacs configuration on LinuxInstall GuidThis guide is only for uBuntu 12.04 version, haven't been test on oth原创 2013-02-26 20:59:48 · 1525 阅读 · 0 评论 -
NFS挂载问题汇总
The rpcbind failure Error.The following example shows the message that appears on the client system during the boot process or in response to an explicit mount request:nfs mount: server1:: RPC:转载 2012-03-20 13:05:09 · 920 阅读 · 0 评论 -
Using OpenWRT on TP-Link WR841N-V7.2 router
1. Visit the OpenWRT website https://openwrt.org/, find the supportinghardware tables. According to your router, select the corresponding link.2. Followthe instruction below. Be careful,原创 2012-02-19 17:37:24 · 1822 阅读 · 0 评论 -
FC9安装vm-tools最终方案
转载:http://blog.csdn.net/chinazcw/archive/2008/06/25/2587103.aspx 1、打开菜单“VM -> Install VMware Tools”,然后有光盘自动弹出,把里面的源代码拷贝出来。我的文件是vmwareTools-6.0.4-93057.tar.gz ,我把它拷贝到/opt里。2 、安装 VMware TOOLS转载 2008-07-04 17:49:00 · 2632 阅读 · 4 评论 -
cli()/sti()移除指南
cli()/sti()移除指南UniProcessor:UP 单处理器MultiProcessor:MP 多处理器#### cli()/sti() removal guide, started by Ingo Molnar mingo@redhat.com [原文:linux-2.6.22/Documentation/cli-sti-removal.txt]CN Translated转载 2008-08-07 14:08:00 · 1597 阅读 · 0 评论 -
使用VIM开发软件项目 - (5) 使用tag文件和taglist插件 (二)
新一篇: 在CSDN的文章中插入图片function StorePage(){d=document;t=d.selection?(d.selection.type!=None?d.selection.createRange().text:):(d.getSelection?d.getSelection():);void(keyit=window.open(http://ww转载 2008-05-13 13:57:00 · 764 阅读 · 0 评论 -
Linux内存泄漏检测
valgrind --leak-check=yes -v ./checker原创 2007-05-23 22:44:00 · 1167 阅读 · 0 评论 -
Linux下使用math函数库注意
由于math的函数不再libc中,所以编译的时候要加上-lm选项原创 2007-05-23 22:39:00 · 1304 阅读 · 0 评论 -
如何编译动态库
比如说通过以下的方法:gcc -c -fPIC test1.c //PIC stands for position-independent code.gcc -c -fPIC test2.c调用方法:gcc -shared -fPIC -o libtest.so test1.o test2.o原创 2007-05-23 22:32:00 · 735 阅读 · 0 评论 -
如何在uClinux上添加用户程序
1)修改user下的Makefile文件 2)修改config下的Confiure.help文件 3)修改config 下的config.in文件 4)make Menuconfig添加用户程序原创 2007-05-23 22:29:00 · 811 阅读 · 2 评论 -
Linux获取进程ID
#include stdio.h> #include unistd.h> int main ( ) ...{ printf ("The process ID is %d ", (int) getpid ()) ; //本进程 printf ("The parent process ID is %d ", (int) getppid ()) ; //父进程 return 0 ; }原创 2007-05-23 22:42:00 · 14211 阅读 · 1 评论 -
Linux2.6内核驱动hello.c
hello.c代码/**//**************************************************/#include linux/init.h>#include linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static char *whom="world";static int howmany = 1 ;mod原创 2007-05-23 23:26:00 · 949 阅读 · 0 评论 -
使用embedded ubuntu构建嵌入式文件系统
最近开发了很多基于Freescale的imx6的系统,其中一个问题就是如何找到一个合适的,易用的嵌入式文件系统。当然,我们可以用很多的工具来生成定制话的文件系统,但是在调试开发的时候,每次重新定制,选配文件系统也是一个颇为耗费时间的工作。下面我会将我使用embedded ubuntu 的过程记录下来,方便以后工作。闲话不多说,首先要下载最小文件系统安装首先提示我需要安装一定环境,我原创 2013-03-21 15:15:12 · 1552 阅读 · 0 评论