![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 86
Hello_Linux_001
这个作者很懒,什么都没留下…
展开
-
linux select和poll系统调用源码分析
linux select内核实现原理:select系统调用定义,位置在\fs\select.c在看linux内核对select实现之前,最好先了解用户态程序是怎么使用的,这样有利于我们对select实现的理解,select函数的使用可以自行上网搜索。select系统调用格式定义如下:SYSCALL_DEFINE5(select, int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct原创 2021-04-11 15:55:06 · 263 阅读 · 0 评论 -
分析vivi.c
从入口函数看起:static int __init vivi_init(void)struct vb2_queue *q;/* 找到支持的字体格式 */const struct font_desc *font = find_font("VGA8x16");/* 创建一个实例 */ret = vivi_create_instance/* 封装的结构体 */struct原创 2017-06-28 13:50:10 · 1112 阅读 · 0 评论 -
c语言实现找出字符串str2在字符串str1中的首地址
char * location(char *str1, char * str2){ char *p = str1; char str3[1024] = {0}; strcpy(str3,str2); int len = strlen(str3);// while ( (*p++ != *str2) && (*p++ != '\0') ) 错误的写法,p会自加两次 while原创 2018-01-16 19:36:00 · 1438 阅读 · 0 评论