![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux Programming
文章平均质量分 91
elfylin
这个作者很懒,什么都没留下…
展开
-
Interrupt Handler
1. interrupt flowHardware->Interrupt Controller->Processor2.Interrupt Handlera. DefinitionThe function that the kernel runs, in response to a specific interrupt.b.Difference between other ke原创 2012-02-14 21:27:40 · 2642 阅读 · 0 评论 -
linux 系统 ko模块编译
今天整理以前笔记,发现曾经里面有一个Makefile文件。 仔细一看是以前实习做linux内核程序设计时候写的模块makefile。刚好我电脑也有linux系统,就拿来回顾一下。写个my.c和一个Makefile文件,然后make编译一下,就成功了,生成my.ko 再加载一下insmod my.ko dmesg|grep module 看到模块初始化时候的打印卸载模原创 2010-09-26 21:10:00 · 29509 阅读 · 1 评论 -
ptrace
1. definitionlong ptrace(int request, pid_t pid, void * addr, void * data)request , trace type;the request determine the meaning of the other parameters and return value. 2.possibility of原创 2012-03-09 22:35:43 · 2522 阅读 · 1 评论 -
UNIX Domain Socket IPC (sockaddr_un )
socket API原本是为网络通讯设计的,但后来在socket的框架上发展出一种IPC机制,就是UNIX Domain Socket。虽然网络socket也可用于同一台主机的进程间通讯(通过loopback地址127.0.0.1),但是UNIX Domain Socket用于IPC更有效率:不需要经过网络协议栈,不需要打包拆包、计算校验和、维护序号和应答等,只是将应用层数据从一个进程拷贝到另一个转载 2012-03-15 23:15:59 · 1198 阅读 · 0 评论 -
Android C/CPP log
Android use UNIX Domain Socket for get debug log.usually name "tombstone_0X" and so on in /data/log/logcat/1. Server First , it has a socket server. it's a executable program.The code was原创 2012-03-15 23:34:58 · 3348 阅读 · 0 评论 -
socket
simple server and client may be useful for copy in the futureserver:#include #include "sys/types.h"#include "sys/socket.h"#include "sys/stat.h"#include "unistd.h"#include //#in原创 2012-04-04 22:56:29 · 1145 阅读 · 0 评论