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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimrW2sMUcLGOAgC6h1JA-ZgzX23X3bbbyzh_Mrr@mail.gmail.com>
Date:	Mon, 17 May 2010 12:26:35 +0530
From:	Jaswinder Singh Rajput <jaswinderlinux@...il.com>
To:	Srinivas Nayak <sinu.nayak2001@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Which function returns LWP in Linux.

Hello,

On Mon, May 17, 2010 at 11:57 AM, Srinivas Nayak
<sinu.nayak2001@...il.com> wrote:
> Hi,
>
> For a process, we have different PIDs. For threads under a single
> processes, we have different LWP id, but same PID in Linux.
> ex.
>
> root@pc:/home/srinivas# ps -eLf
> UID        PID  PPID     LWP  C STIME       TIME     CMD
> root       100     1     100  0 May13       00:00:02 ./a.out
> root       100     1     102  0 May13       00:00:00 ./a.out
>
> getpid() function returns PID of a process.
> Which function retuns LWP id for thread?
>

You are asking procps question in LKML.

Please check http://procps.sourceforge.net/

Download propps package, read source code and you will get the reply.

Thanks,
--
Jaswinder Singh.
--
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