Linux Device Driver
如何取得目前PID
參考資訊:
1. getting-user-process-pid-when-writing-linux-kernel-module
如下:
#include <linux/sched.h> printk("current PID: %d", task_pid_nr(current));
如何取得目前PID
參考資訊:
1. getting-user-process-pid-when-writing-linux-kernel-module
如下:
#include <linux/sched.h> printk("current PID: %d", task_pid_nr(current));