01 2016 档案

摘要:测试:1:make menuconfig去掉原来的驱动程序 Device Drivers ---> Graphics support ---> <M> S3C2410 LCD framebuffer support 2: make uImage make modules cp arch/arm/bo 阅读全文
posted @ 2016-01-29 23:41 CAM& 阅读(335) 评论(0) 推荐(0)
摘要:1.分配一个fb_info结构体: framebuffer_alloc 2.设置 3.注册 4.硬件相关操 struct fb_fix_screeninfo { char id[16]; /* identification string eg "TT Builtin" */ unsigned lon 阅读全文
posted @ 2016-01-28 22:35 CAM& 阅读(194) 评论(0) 推荐(0)
摘要:app: read() -------------------------------------------------------------------------------------------- kernel: fb_read int fbidx = iminor(inode); st 阅读全文
posted @ 2016-01-28 20:09 CAM& 阅读(170) 评论(0) 推荐(0)
摘要:drivers/input/input.c: input_init > err = register_chrdev(INPUT_MAJOR, "input", &input_fops); static const struct file_operations input_fops = { .owne 阅读全文
posted @ 2016-01-27 17:35 CAM& 阅读(172) 评论(0) 推荐(0)
摘要:最近看了一下Linux Poll 机制的实现,看了韦老师的分析文档,总结如下:int poll(struct pollfd *fds,nfds_t nfds, int timeout);总的来说,Poll机制会判断fds中的文件是否可读,如果可读则会立即返回,返回的值就是可读fd的数量,如果不可读,... 阅读全文
posted @ 2016-01-26 13:15 CAM& 阅读(845) 评论(0) 推荐(0)