2011年4月12日

摘要: Bottom Halves and Deferring Work Bottom Halves The job of bottom halves is to perform any interrupt-related work not performed by the interrupt handler. In an ideal world, this is nearly all the work because you want the interrupt handler to perform as little work (and in turn be as fast) ... 阅读全文

posted @ 2011-04-12 16:37 Teddy Yan 阅读(157) 评论(0) 推荐(0) 编辑

摘要: Kernel Data Structures The linked-list code is declared in the header file and the data structure is simple: Usage is slightly different in kernel versions prior to 2.6.33—doublecheck before writing code rbtrees The Linux implementation of red-black trees is called rbtrees.They are defined in l... 阅读全文

posted @ 2011-04-12 16:37 Teddy Yan 阅读(135) 评论(0) 推荐(0) 编辑

摘要: Syscalls: SYSCALL_DEFINE0(getpid) { return task_tgid_vnr(current); // returns current->tgid } SYSCALL_DEFINE0 is simply a macro that defines a system call with no parameters (hence the 0).The expanded code looks like this: asmlinkage long sys_getpid(void) System Call Numbers The ke... 阅读全文

posted @ 2011-04-12 16:36 Teddy Yan 阅读(155) 评论(0) 推荐(0) 编辑

摘要: asm/thread_info.h linux/threads.h /proc/sys/kernel/pid_max linux/sched.h kernel/fork.c linux/kthread.h struct task_struct *kthread_create Process Priority Process Priority Timeslice The Scheduling Policy in Action Specifically, CFS determines that the text editor has run for... 阅读全文

posted @ 2011-04-12 16:36 Teddy Yan 阅读(209) 评论(0) 推荐(0) 编辑

摘要: FFDShow tryout 把ffmpeg和DirectX 结合起来并封装在几个类里面。类图见我的google doc 代码路径分析: //------------------Construct FFshow decoder-------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------... 阅读全文

posted @ 2011-04-12 16:35 Teddy Yan 阅读(635) 评论(0) 推荐(0) 编辑


Copyright © 2024 Teddy Yan
Powered by .NET 8.0 on Kubernetes