Kernel thread id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1. How to get id of a schedulable entity in kernel space i.e.
pthread_create is done in
user space, is task_struct->pid the thread of this newly created
thread? Does this
pid  represent a thread and task_struct->tgid the leader of the thread
group i.e. main
thread?

2. If all answers to 1 are positive then is task_struct->pid eqal to
output of sys_gettid()?

3. Why the hell sys_gettid is imlemented in timer.c?


-Leo.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux