Home
last modified time | relevance | path

Searched refs:clockID (Results 1 – 4 of 4) sorted by relevance

/kernel/liteos_a/compat/posix/src/
Dtime.c423 int clock_settime(clockid_t clockID, const struct timespec *tp) in clock_settime() argument
427 switch (clockID) { in clock_settime()
462 inline UINT32 GetTidFromClockID(clockid_t clockID) in GetTidFromClockID() argument
465 UINT32 tid = -(clockID - 6) / 8 - 1; // 6 8 1 inverse operation from clockID to tid in GetTidFromClockID()
469 inline const pid_t GetPidFromClockID(clockid_t clockID) in GetPidFromClockID() argument
472 const pid_t pid = -(clockID - 2) / 8 - 1; // 2 8 1 inverse operation from clockID to pid in GetPidFromClockID()
476 static int PthreadGetCputime(clockid_t clockID, struct timespec *ats) in PthreadGetCputime() argument
480 UINT32 tid = GetTidFromClockID(clockID); in PthreadGetCputime()
501 static int ProcessGetCputime(clockid_t clockID, struct timespec *ats) in ProcessGetCputime() argument
505 const pid_t pid = GetPidFromClockID(clockID); in ProcessGetCputime()
[all …]
/kernel/liteos_a/syscall/
Dtime_syscall.c160 int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID) in SysTimerCreate() argument
176 ret = OsTimerCreate(clockID, evp ? &ksevp : NULL, &stimerID); in SysTimerCreate()
263 int SysClockSettime(clockid_t clockID, const struct timespec *tp) in SysClockSettime() argument
278 ret = clock_settime(clockID, &stp); in SysClockSettime()
285 int SysClockGettime(clockid_t clockID, struct timespec *tp) in SysClockGettime() argument
295 ret = clock_gettime(clockID, &stp); in SysClockGettime()
308 int SysClockGetres(clockid_t clockID, struct timespec *tp) in SysClockGetres() argument
318 ret = clock_getres(clockID, &stp); in SysClockGetres()
405 int SysClockSettime64(clockid_t clockID, const struct timespec64 *tp) in SysClockSettime64() argument
428 ret = clock_settime(clockID, &t); in SysClockSettime64()
[all …]
Dlos_syscall.h188 extern int SysTimerCreate(clockid_t clockID, struct ksigevent *evp, timer_t *timerID);
192 extern int SysClockSettime(clockid_t clockID, const struct timespec *tp);
193 extern int SysClockGettime(clockid_t clockID, struct timespec *tp);
194 extern int SysClockGetres(clockid_t clockID, struct timespec *tp);
199 extern int SysClockSettime64(clockid_t clockID, const struct timespec64 *tp);
200 extern int SysClockGettime64(clockid_t clockID, struct timespec64 *tp);
201 extern int SysClockGetres64(clockid_t clockID, struct timespec64 *tp);
/kernel/liteos_m/kal/posix/src/
Dtime.c132 int timer_create(clockid_t clockID, struct sigevent *restrict evp, timer_t *restrict timerID) in timer_create() argument
137 if (!timerID || (clockID != CLOCK_REALTIME) || !evp) { in timer_create()
315 int clock_settime(clockid_t clockID, const struct timespec *tp) in clock_settime() argument
322 switch (clockID) { in clock_settime()
354 int clock_gettime(clockid_t clockID, struct timespec *tp) in clock_gettime() argument
361 switch (clockID) { in clock_gettime()
394 int clock_getres(clockid_t clockID, struct timespec *tp) in clock_getres() argument
401 switch (clockID) { in clock_getres()