* dereferencing pointer to incomplete type in current->pid
@ 2002-11-22 19:10 Alberto
2002-11-22 20:11 ` Jan-Benedict Glaw
0 siblings, 1 reply; 2+ messages in thread
From: Alberto @ 2002-11-22 19:10 UTC (permalink / raw)
To: linux-c-programming
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 );
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dereferencing pointer to incomplete type in current->pid
2002-11-22 19:10 dereferencing pointer to incomplete type in current->pid Alberto
@ 2002-11-22 20:11 ` Jan-Benedict Glaw
0 siblings, 0 replies; 2+ messages in thread
From: Jan-Benedict Glaw @ 2002-11-22 20:11 UTC (permalink / raw)
To: linux-c-programming
[-- Attachment #1: Type: text/plain, Size: 716 bytes --]
On Fri, 2002-11-22 20:10:01 +0100, Alberto <apedrero@upsa.es>
wrote in message <3DDE8109.375DA70C@upsa.es>:
> 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
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +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/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-22 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-22 19:10 dereferencing pointer to incomplete type in current->pid Alberto
2002-11-22 20:11 ` Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).