Skip to contentSkip to conversation

dereferencing pointer to incomplete type in current->pid

DISCUSSION Alberto 2 participants 2 messages Nov 22, 2002

lore
Share & tools
lore

Alberto

author
#0 lore raw

Hi,

I'm triying to work with the current macro. When i compile this code i get the message:
"dereferencing pointer to incomplete type".

Any idea?

Thanks in advance

#include <sys/types.h>
#include <linux/kernel.h>
#include </usr/src/linux-2.4.18-18.7.x/include/asm-i386/current.h> #include <sched.h>

main (void)

{
        printf (" pid  %l\n", current->pid );
}
#1 lore raw

On Fri, 2002-11-22 20:10:01 +0100, Alberto <[email protected]> wrote in message <[email protected]>:

Quoted 5 lines

Hi,

I'm triying to work with the current macro. When i compile this code i get the message:
"dereferencing pointer to incomplete type".

You're mixing up kernel space (where something like "current" exists and user space, where this concept is meaningless.

This is why it simply doesn't exist there...

MfG, JBG

Signature · 4 lines
   Jan-Benedict Glaw       [email protected]    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur
    fuer einen Freien Staat voll Freier Bürger" | im Internet!
   Shell Script APT-Proxy: http://lug-owl.de/~jbglaw/software/ap2/