Linux Device Driver

如何取得目前task struct


參考資訊:
1. what-is-the-current-in-linux-kernel-source

如下:

#include <linux/sched.h>

printk("current task struct: %p", get_current());


返回上一頁