摘要:
简单来说,在内核中使用delay函数,如果调用schedule_timeout有可能被signal打断,导致delay的时间小于预期,而mdelay可以确保等待的时间大于等于参数设置的时间,在一些hardware驱动当中使用的delay,安全起见,一般推荐使用mdelay或者usleep_ran... 阅读全文
摘要:
首先我们来看问题的背景,上层的encoder/decoder的工作流程是这样的:Work procedure1. Open the uio0 device to get the fd2. Get the VPU register base address, work buffer and SRAM ... 阅读全文