【发布时间】:2012-06-05 23:45:52
【问题描述】:
我需要包含一个库吗? 谁能详细说明一下?
我知道用于获取当前任务的进程ID,从中调用
但我想用 current->pid 打印一些东西
printk("My current process id/pid is %d\n", current->pid);
...给我一个错误
error: dereferencing pointer to incomplete type
【问题讨论】:
-
你用的是什么版本的linux?