- 博客(7)
- 收藏
- 关注
原创 Centos 命令自动补全,为make自动补全
需要安装bash-completion-extras工具包sudo yum install bash-completion-extras若没有该工具包,可尝试一下命令后在安装yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm...
2020-02-10 14:07:36 956
原创 .vimrc配置
set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#b...
2019-12-11 15:06:28 287
原创 linux使用dbus通信-方法测试
client端#include<dbus/dbus.h>DBusError dbus_error;void print_dbus_error (char *str);bool isinteger (char *ptr);void print_dbus_error (char *str) { fprintf (stderr, "%s: %s\n", str, db...
2019-11-25 16:05:36 2013 1
原创 ConnectionErr : Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
在测试dbus通信是出现错误:ConnectionErr : Unable to autolaunch a dbus-daemon without a $DISPLAY for X11解决方法:执行以下命令:eval dbus-launch --sh-syntax重启dbus服务:service dbus restart...
2019-11-21 10:47:01 2335
原创 错误:dbus/dbus.h:No such file or directory
在运行dbus测试程序时出现错误:dbus/dbus.h:No such file or directory如果已经安装了dbus(没有请安装)查找dbus.h位置$ sudo locate dbus.h如果提示错误,执行 $ sudo updatedb/usr/local/include/dbus-1.0/dbus/dbus.h/usr/include/dbus-1.0/dbus/...
2019-11-20 16:18:34 10028 2
原创 git远程仓库IP变更,修改本地git地址
1、使用git remote -v查看当前remotes例如:View existing remotesorigin https://github.com/user/repo.git (fetch)origin https://github.com/user/repo.git (push)2、修改remotesgit remote set-url origin https://gi...
2019-11-19 08:36:22 2449
原创 linux共享队列
linux内核有自己的一个workqueue,叫keventd_wq,这个工作队列也叫做“共享队列”。若驱动模块使用的workqueue功能很简单的话,可以使用“共享队列”,不用自己再建一个队列。1、创建结构体struct work_struct XXX_work;2、初始化队列INIT_WORK(&XXX_work,my_function);//my_function 为自己...
2019-11-19 08:34:17 364
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人