上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页
摘要: 本文原创,原创不易,转载请注明出处! Linux eventpoll解析 eventpoll是什么? eventpoll是一个可以同时监听多个file发生特定event,然后将发生的特定event返回user space,在user space调用此event的回调函数的一种功能,它一个wait可以 阅读全文
posted @ 2022-02-03 17:49 aspirs 阅读(2242) 评论(0) 推荐(0) 编辑
摘要: linux signal misc 在user space常使用的signal相关的API 1. 在user space注册信号处理函数 sigaction()函数prototype: int sigaction(int signum, const struct sigaction *act,str 阅读全文
posted @ 2022-02-03 10:58 aspirs 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 给一个进程发送SIGTERM信号kernel处理flow 给一个进程发送SIGTERM信号kernel处理flow 以在命令行下给一个进程发送SIGTERM信号为例说明下kernel是怎么处理这个信号的 首先会alloc一个sigqueue,这个sigqueue代表SIGTERM,然后将这个sigq 阅读全文
posted @ 2022-01-27 18:05 aspirs 阅读(993) 评论(0) 推荐(0) 编辑
摘要: compiler misc unused attribute 如果参数/函数没有被使用,可以在参数/函数前加__attribute__ ((unused)) int main(__attribute__ ((unused)) int argc, __attribute__ ((unused)) ch 阅读全文
posted @ 2022-01-16 14:39 aspirs 阅读(47) 评论(0) 推荐(0) 编辑
摘要: interval tree interval tree中可以插入完全相同的node,此后interval tree中将会有此两个相同的node 往interval tree中插入两个相同的node后,再根据node的值到interval tree中去搜索,结果是可以找到这两个相同的node,这两个n 阅读全文
posted @ 2022-01-14 10:26 aspirs 阅读(110) 评论(0) 推荐(0) 编辑
摘要: VMA 深入Linux内核(内存篇)—用户内存空间之VMA https://blog.csdn.net/liyuewuwunaile/article/details/107272123 struct page/VMA/AVC/AV之间的关系 父进程每个VMA都有一个anon_vma数据结构,vma- 阅读全文
posted @ 2022-01-06 13:35 aspirs 阅读(649) 评论(0) 推荐(0) 编辑
摘要: process mngr misc PID/TGID/PGID/SID PID:在ps cmd里显示的pid是进程id,它对应kernel task_struct里的tgid成员。task_struct里的pid_t pid成员是线程id,task_struct里的tgid是thread group 阅读全文
posted @ 2022-01-03 11:11 aspirs 阅读(75) 评论(0) 推荐(0) 编辑
摘要: struct pid & pid_namespace alloc_pid() & task_struct插入pid struct tasks[] hash list fork进程/线程时,copy_process()会给此线程alloc一个struct pid结构体。当是fork进程/线程时,cop 阅读全文
posted @ 2021-12-31 17:11 aspirs 阅读(487) 评论(0) 推荐(0) 编辑
摘要: CPU cache Linux内存管理:ARM64体系结构与编程之cache(1) https://www.codenong.com/cs109826497/ http://www.wowotech.net/memory_management/458.html?from=timeline 阅读全文
posted @ 2021-12-29 15:52 aspirs 阅读(111) 评论(0) 推荐(0) 编辑
摘要: kernel exception时打印出的ESR相关信息 <1>[ 7766.006249] Unhandled fault at 0xffffff800188d408 <1>[ 7766.006256] Mem abort info: <1>[ 7766.006259] ESR = 0x86000 阅读全文
posted @ 2021-12-29 12:30 aspirs 阅读(2231) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 41 下一页