随笔分类 -  Linux 应用相关

写Linux应用相关的时候出现的问题
摘要:insmod: failed to load *.KO Operation not permitted It shows you don't have the permit to do it just do like this : su then you can do what you want 阅读全文
posted @ 2021-06-17 09:17 johnny_shi 阅读(789) 评论(0) 推荐(0)
摘要:一 为什么需要使用虚拟内存 大家都知道,进程需要使用的代码和数据都放在内存中,比放在外存中要快很多。问题是内存空间太小了,不能满足进程的需求,而且现在都是多进程,情况更加糟糕。所以提出了虚拟内存,使得每个进程用于3G的独立用户内存空间和共享的1G内核内存空间。(每个进程都有自己的页表,才使得3G用户 阅读全文
posted @ 2016-06-22 14:03 johnny_shi 阅读(393) 评论(0) 推荐(0)
摘要:实验平台内核版本为4.0-rc1,增加一仅仅打印Hello World的syscall,最后我们在用户空间swi验证 实验平台内核版本为4.0-rc1,增加的系统调用仅仅是简单打印一个Hello World,最后我们在用户空间用swi指令验证。涉及到的改动如下: 1. 在内核中增加文件arch/ar 阅读全文
posted @ 2016-06-22 10:52 johnny_shi 阅读(835) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-04-13 22:36 johnny_shi 阅读(463) 评论(0) 推荐(0)
摘要:参考了http://blog.csdn.net/topasstem8/article/details/17920127 和http://blog.sina.com.cn/s/blog_560e31000101ajgw.html 的内容#!/usr/bin/expectspawn ssh -l snq... 阅读全文
posted @ 2015-10-19 15:42 johnny_shi 阅读(412) 评论(0) 推荐(0)
摘要:在写wifi库的时候碰见一个Segmentationfault(CoreDump)所以需要用GDB调试下。在cmake的时候,修改CMakeLists.txtset(CMAKE_C_FLAGS "-g -Wall")然后就可以调试了,打开调试功能。如果是调试C++ 就要用添加set(CMAKE_CX... 阅读全文
posted @ 2015-10-15 13:48 johnny_shi 阅读(1268) 评论(0) 推荐(0)
摘要:现在在做一个WIFI API相关的库,这样就可以让其他的人管理WIFI.在调用API的时候要回复SHELL打印的信息,比如说搜索热点,而且不在SHELL中打印出来。然后把信息返回给调用API的程序。#include #include int main( int argc, char *argv[] ... 阅读全文
posted @ 2015-10-14 16:29 johnny_shi 阅读(302) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/jk110333/article/details/8658054参考了这边文章------------------------------------------------------------------------https://github.com... 阅读全文
posted @ 2015-06-15 13:45 johnny_shi 阅读(1535) 评论(0) 推荐(0)
摘要:------------------------------------------------------------------------------------------https://github.com/174high/iptables_visteon-----------------... 阅读全文
posted @ 2015-06-04 11:24 johnny_shi 阅读(370) 评论(0) 推荐(0)
摘要:在移植wpa_supplicant_8_ti 的时候碰到很多头文件找不到。然后参考了下面的博客http://blog.csdn.net/penglijiang/article/details/8573946首先移植openssl下载下面的oepnssl的源码并且编译安装---------------... 阅读全文
posted @ 2015-06-04 10:23 johnny_shi 阅读(620) 评论(0) 推荐(0)
摘要:https://github.com/174high/iw-3.7-Linux-portinghttps://github.com/174high/libnl-1.1-stable-master-linux-porting下载到平台上一.iw 3.7 工具 依赖 libnl-1.1-stable-m... 阅读全文
posted @ 2015-05-28 18:21 johnny_shi 阅读(1590) 评论(0) 推荐(0)
摘要:今天测试一个本地网络通讯,在ubuntu虚拟机下出现的问题,警报:accept: Invalid argument初始化地方:socklen_t clilen;struct sockaddr_in clientaddr;问题点:connfd = accept(listenfd,(sockaddr *... 阅读全文
posted @ 2014-04-24 11:34 johnny_shi 阅读(1541) 评论(0) 推荐(0)