摘要:
0 linux常用命令 du -h u-boot.bin 查看文件大小 1 解析命令行输入指令 /* parse command line arguments */ argv += 2; while (*argv) { if (strcmp(*argv, "-d") == 0) { argv++; 阅读全文
摘要:
linux音频控制在驱动中一般是一个主设备号,一堆次设备号,我的开发板上对应的音频接口如下 查看声卡驱动 ls -l /dev/snd/* /dev/snd/controlC0 /dev/snd/pcmC1D0c /dev/snd/pcmC2D0p/dev/snd/controlC1 /dev/sn 阅读全文
摘要:
从网上找到hashmap截取大部分代码后运行发现一堆小问题,自己整理相关内容,进行测试显示,具体如下 此处根据实际情况会自行扩展内存,原理和java的hashmap很相似 #ifndef __PRIVATE_HASH_MAP_H__ #define __PRIVATE_HASH_MAP_H__ #i 阅读全文
摘要:
查看ip ip address 设置apt 源 (129条消息) linux下 apt的添加下载源_爱吃曲奇的曲奇的博客-CSDN博客_linux添加apt源 gedit /etc/apt/sources.list 中科大源deb https://mirrors.ustc.edu.cn/ubuntu 阅读全文
摘要:
linux 多进程通讯 clpsz/linux-ipcs: Linux进程间通信(Inter-Process Communication)方式汇总 (github.com) 无名管道 pipe #include <stdio.h> #include <stdlib.h> #include <unis 阅读全文
摘要:
参考 (128条消息) linux下串口的阻塞和非阻塞操作_wuhengwudi的博客-CSDN博客_linux 阻塞 非阻塞 稍作修改 阻塞 非阻塞 #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string 阅读全文
摘要:
T507 UBOOT 打印 tick_printf("func:%s \t line:%d\n", __func__,__LINE__); tick_printf("func:%s \t line:%d \tval:%d\n", __func__,__LINE__,val); #include <s 阅读全文
摘要:
/*t01_testthread.cpp*/ #include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<pthread.h> /* 看到这里可能会有点疑问,为何除了条件变量还需要一个互斥对象呢?等待时为什么需要条件变量和互斥对象 阅读全文
摘要:
// 阅读全文