utils/worker.c
/**
 * worker_get - get thw worker from the worker id
 *
 * @worker_id - the unique identifier for a worker
*
 * Assumption: lock with g_lock_system_workers before calling this function
 */
get thw worker from the worker id
@worker_id - the unique identifier for a worker

lock with g_lock_system_workers before calling this function
get thw worker from the worker id @worker_id - the unique identifier for a worker lock with g_lock_system_workers before calling this function
static worker_t *worker_get(int worker_id)
{
  worker_t *worker = NULL;
  list_for_each_entry(worker, &g_system_workers, worker_cb) {
    if (worker->workqueue_id == worker_id) {
      return worker;
    }
  }
  return NULL;
}
static worker_t * worker_get ( int worker_id ) { worker_t * worker = NULL ; list_for_each_entry ( worker , & g_system_workers , worker_cb ) { if ( worker -> workqueue_id == worker_id ) { return worker ; } } return NULL ; }
worker_get - get thw worker from the worker id
 @worker_id - the unique identifier for a worker
worker_get - get thw worker from the worker id @worker_id - the unique identifier for a worker