Do I need to include a library? Can anyone comment on this?
I know what is used to get the process id of the current task called from
But I want to print something with current-> pid
printk("My current process id/pid is %d\n", current->pid);
... and gives me an error
error: dereferencing pointer to incomplete type
c linux process
randomizertech
source share