Get the process internal ID based on its PID * @return: -1 or the index of the given process */
| 153 | /* Get the process internal ID based on its PID |
| 154 | * @return: -1 or the index of the given process */ |
| 155 | inline static int get_process_ID_by_PID(pid_t pid) |
| 156 | { |
| 157 | int i; |
| 158 | |
| 159 | for( i=0 ; i<counted_max_processes ; i++ ) |
| 160 | if (pt[i].pid==pid) |
| 161 | return i; |
| 162 | |
| 163 | return -1; |
| 164 | } |
| 165 | |
| 166 | void reset_process_slot(int p_id); |
| 167 |
no outgoing calls
no test coverage detected