Function report |
Source Code:kernel\time\posix-cpu-timers.c |
Create Date:2022-07-28 10:47:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:posix_cpu_clock_get
Proto:static int posix_cpu_clock_get(const clockid_t clock, struct timespec64 *tp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const clockid_t | clock | |
| struct timespec64 * | tp |
| 364 | clkid = CPUCLOCK_WHICH(clock) |
| 368 | tsk = get_task_for_clock_get(clock) |
| 372 | If CPUCLOCK_PERTHREAD(clock) Then t = Sample a per-thread clock for the given task. clkid is validated. |
| 376 | put_task_struct(tsk) |
| 378 | tp = s_to_timespec64 - Convert nanoseconds to timespec64*@nsec: the nanoseconds value to be converted* Returns the timespec64 representation of the nsec parameter. |
| 379 | Return 0 |
| Name | Describe |
|---|---|
| process_cpu_clock_get | |
| thread_cpu_clock_get |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |