摘要:
init_timer(&timer1); timer1.function = test_time; timer1.data = 0; timer1.expires = jiffies + msecs_to_jiffies(1); add_timer(&timer1); sd_test(mmc); printk("count = %d \n",count);sd_test()函数写在probe函数中,但要等待sd初始化完毕才行,需要在上电时就插入SD卡,而不要等待系统起来之后。另外,如果mmc_rescan函数使用的工作队列实现的,那么它与probe就属于两. 阅读全文