I am trying to convert the start_time of the linux kernel task_struct into nanoseconds. I need to give it the argument of const struct timespec * but start_time is of type struct timespec.
How would I make it a constant and a pointer to the timespec struct? Example code:
(*kinfo).start_time = timespec_to_ns((*current).start_time);