一个简单的问题,·linux下获取当前进程。我们都知道在内核中获取当前进程可以利用current宏 通过get_current发现其是利用当前线程获取的当前进程线程结构thread_info结构中有指向其所属的进程指针task 代码比较简单,获取sp寄存器的值,然后和~(THREAD_SIZE-1) Read More
posted @ 2017-05-21 12:57 jack.chen Views(2305) Comments(0) Diggs(0) Edit

以马内利