摘要: gpio && pinctrl 阅读全文
posted @ 2023-10-10 14:45 _xingxing 阅读(11) 评论(0) 推荐(0)
摘要: dma 阅读全文
posted @ 2023-10-10 14:44 _xingxing 阅读(13) 评论(0) 推荐(0)
摘要: 前言 先知整个流程:如何创建一个workqueue、一个work queue入一个workqueue之后,work对应的func怎么被执行; 再扣细节:__alloc_workqueue_key中WQ_UNBOUND flag有什么作用?max_active的作用是什么?worker的动态管理? 数 阅读全文
posted @ 2023-10-10 14:42 _xingxing 阅读(47) 评论(0) 推荐(0)
摘要: raise_softirq_irqoff 初始化 执行 阅读全文
posted @ 2023-10-10 14:42 _xingxing 阅读(24) 评论(0) 推荐(0)
摘要: irq_of_parse_and_map request_threaded_irq irq_thread 中断处理 阅读全文
posted @ 2023-10-10 14:41 _xingxing 阅读(22) 评论(0) 推荐(0)
摘要: poll的作用 it waits for one of a set of file descriptors to become ready to perform I/O. 也就是poll的作用是等待一组文件描述符变得可执行; 假若刚进行监测时不可执行怎么处理呢?会根据timeout参数阻塞; The 阅读全文
posted @ 2023-10-10 14:39 _xingxing 阅读(11) 评论(0) 推荐(0)
摘要: wait_queue 等待队列所做的事情: 将一个需要睡眠的进程(task_struct)与一个wait entry进行绑定(private成员); 指定唤醒函数; schedule调度出去; 唤醒时: 前面已经将进程与wait entry进行绑定,唤醒时也能通过wait entry准确找到进程; 阅读全文
posted @ 2023-10-10 14:39 _xingxing 阅读(14) 评论(0) 推荐(0)
摘要: 设计思想 设置三条路径,快,中,慢; 获取锁 快速:快速路径简单判断一个值;获取锁时标记其被locked; 中速:其被locked时,进入中速,中速就是等待这个locked为0;中速的时候为了标记中速已被占领,还需要通过一个pending标记; 慢速:检查lock有值,证明我应该进入中速;又发现pe 阅读全文
posted @ 2023-10-10 14:38 _xingxing 阅读(17) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-10 14:38 _xingxing 阅读(13) 评论(0) 推荐(0)
摘要: about spi, todo 阅读全文
posted @ 2023-10-10 14:37 _xingxing 阅读(11) 评论(0) 推荐(0)