- 博客(14)
- 资源 (10)
- 收藏
- 关注
原创 Linux内核中工作队列的使用work_struct,delayed_work
初始化工作队列 调度工作队列 取消工作队列 #include #include #include #include #include static struct work_struct test_work; static struct delayed_work test_delayed_work; static void test_func(struct work_st
2015-01-29 11:35:58 3104
原创 CSDN越来越不稳定之三
Server Error in '/' Application. The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Description: An unhandled
2015-01-29 10:57:14 629
原创 CSDN越来越不稳定之二
Server Error in '/' Application. The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Description: An un
2015-01-29 10:45:41 887
原创 CSDN越来越不稳定之一
Server Error in '/' Application. The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Description: An unhandled e
2015-01-29 10:44:55 877
原创 Linux内核线程中信号处理
创建线程 允许信号 屏蔽指定信号 信号处理 #include #include #include #include #include static struct task_struct *test_thread; static int test_thread_func(void *arg) { sigset_t hupmask; siginitset(&hupm
2015-01-29 10:41:09 935
转载 中断处理过程
原文地址:http://blog.csdn.net/sicf/article/details/8957219 1. 在entry_32.S 里面,会建立一个interrupt数组, interrupt数组,是一个函数指针数组。数组的每个元素都指向一个函数 其实呢,数组的每个元素,指向的是一段代码。 这段代码的功能为: push
2015-01-28 17:20:35 534
原创 Linux内核中timer_list定时器的使用
设置定时器结构体的回调函数参数、回调函数、到期时间 初始化定时器 添加定时器 如果需要重复执行,则在回调函数里使用mod_timer继续激活定时器回调 #include #include struct timer_list test_timer; static void test_func(unsigned long data) { printk("jiffies:
2015-01-28 13:18:58 623
原创 Linux内核中tasklet的使用
调用tasklet_init初始化结构体struct tasklet_struct 调用tasklet_schedule将结构体加入软中断的链表,只会执行一次tasklet的回调函数 调用tasklet_kill等待tasklet执行完毕,如果tasklet_disable了,则会一直等待 #include #include static struct taskle
2015-01-27 18:17:30 713
原创 使用ctl_table向内核传递数据
在/proc/sys/目录下创建文件 实现参数变更 #include static struct ctl_table_header *ctl_table_test_header; unsigned int sysctl_test_int; char sysctl_test_string[256]; static struct ctl_table ctl_table_test[]
2015-01-27 15:51:13 1508
原创 6410开发板通过USB烧写u-boot,kernel,system
上电后,在串口按任意键进入菜单 Hit any key to stop autoboot: 0 ###################### User Menu for OK6410##################### [1] Format the nand flash [2] Burn image from USB [3] configure the lcd si
2015-01-24 15:14:54 924
原创 使用dnw烧写文件系统时报错[ERROR:File Size Error]
dnw运行在虚拟机里 开始时直接选择vmsahre里的rootfs.yaffs2-nand2g 烧写报错[ERROR:File Size Error] 把文件rootfs.yaffs2-nand2g复制到虚拟机里就可以了
2015-01-24 15:07:34 991
转载 read 系统调用剖析--file_operations中read/write函数与内核系统调用的关系
原文地址:http://blog.chinaunix.net/uid-7332782-id-3216393.html 在阅读LDD3-第三章-字符设备驱动程序中: 点击(此处)折叠或打开 struct file_operations scull_fops = { .owner = THIS_MODULE, .llseek = s
2015-01-22 10:49:48 809
转载 miscdevice混杂设备驱动
原文地址:http://blog.csdn.net/tong646591/article/details/8301925 定义:字符设备的一种,它们共享一个主设备号(10),但次设备号不同,所有的混杂设备形成一个链表,对设备访问时内核根据次设备号查找到相应的miscdevice设备。 例如:触摸屏,LED,按键,串口。 即:为了节约主设备号,将某些设备用链表的形式连接在一
2015-01-17 14:54:30 480
转载 rmmod: chdir(/lib/modules): No such file or directory 解决方法
原文地址:http://blog.csdn.net/quyang0602/article/details/7351431 使用rmmod会出现 rmmod : chdir(/lib/modules): No such file or directory ? 现在的内核模块在插入卸载时都会要转到 “/lib/modules/内核版本号/ ” 这个目录里。所以只要建立这个
2015-01-15 17:06:02 458
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人