public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@gmail.com>
To: Pistis Valentino <vale.pistis@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: RE: find_task_by_pid() problem
Date: Tue, 10 Aug 2010 12:32:32 +0900	[thread overview]
Message-ID: <1281411152.1670.24.camel@leonhard> (raw)

> I'm using the routine find_task_by_vpid () linux / sched.h (the oldest
> find_task_by_pid() don't exist), but when I try to compile the file I
> hello_world.c returns an error:

You can only use kernel's EXPORTed symbol, ie. EXPORT_SYMBOL*(), when you
write a module program because kernel links it on its own way.
Try this instead.

pid_task(find_vpid(...), PIDTYPE_PID)

-- 
Regards,
Namhyung Kim



             reply	other threads:[~2010-08-10  3:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10  3:32 Namhyung Kim [this message]
2010-08-10  8:39 ` find_task_by_pid() problem Pistis Valentino
  -- strict thread matches above, loose matches on Subject: below --
2010-08-10  1:14 Pistis Valentino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281411152.1670.24.camel@leonhard \
    --to=namhyung@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vale.pistis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox