i2c linux 驱动
本人自己写的 记录下,static void test_work(struct work_struct *work) { //经常需要用container_of获取一些信息 struct test *ts = container_of(work, struct test, work); queue_delayed_work(monitor_queue, &ts->work, HZ*5); }
本人自己写的 记录下,static void test_work(struct work_struct *work) { //经常需要用container_of获取一些信息 struct test *ts = container_of(work, struct test, work); queue_delayed_work(monitor_queue, &ts->work, HZ*5); }