lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AANLkTinKnLoJUBX5884QkRrDcYiKT=bYJ1zN=a8VSAWy@mail.gmail.com>
Date:	Tue, 10 Aug 2010 10:39:21 +0200
From:	Pistis Valentino <vale.pistis@...il.com>
To:	Namhyung Kim <namhyung@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: find_task_by_pid() problem

2010/8/10 Namhyung Kim <namhyung@...il.com>:
>> 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)
>
Great!
It works!

pid_task(find_vpid(pid), PIDTYPE_PID);

> --
> Regards,
> Namhyung Kim
>
>
>

Thank you!
Ciao
Valentino from Sardegna!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ