Functions | |
| int | new_pid () |
Create a new pid.
| |
| int | get_pid () |
Return the current task pid if there is a curr_task.
| |
Variables | |
| atomic_t | last_pid |
| Last used pid. | |
|
|
Return the current task pid if there is a curr_task.
Definition at line 186 of file task.c.
|
|
|
Create a new pid.
This routine generate a pid using an atomic increment. Definition at line 178 of file task.c.
00179 {
00180 atomic_inc(&last_pid);
00181 return(atomic_read(&last_pid));
00182 }
|
|
|
Last used pid.
|
1.2.18