Searched refs:txc (Results 1 – 3 of 3) sorted by relevance
/kernel/time/ |
D | ntp.c | 276 int do_adjtimex(struct timex *txc) in do_adjtimex() argument 282 if (txc->modes & ADJ_ADJTIME) { in do_adjtimex() 284 if (!(txc->modes & ADJ_OFFSET_SINGLESHOT)) in do_adjtimex() 286 if (!(txc->modes & ADJ_OFFSET_READONLY) && in do_adjtimex() 291 if (txc->modes && !capable(CAP_SYS_TIME)) in do_adjtimex() 295 if (txc->modes & ADJ_TICK && in do_adjtimex() 296 (txc->tick < 900000/USER_HZ || in do_adjtimex() 297 txc->tick > 1100000/USER_HZ)) in do_adjtimex() 300 if (txc->modes & ADJ_STATUS && time_state != TIME_OK) in do_adjtimex() 309 if (txc->modes & ADJ_ADJTIME) { in do_adjtimex() [all …]
|
/kernel/ |
D | compat.c | 955 struct timex txc; in compat_sys_adjtimex() local 958 memset(&txc, 0, sizeof(struct timex)); in compat_sys_adjtimex() 961 __get_user(txc.modes, &utp->modes) || in compat_sys_adjtimex() 962 __get_user(txc.offset, &utp->offset) || in compat_sys_adjtimex() 963 __get_user(txc.freq, &utp->freq) || in compat_sys_adjtimex() 964 __get_user(txc.maxerror, &utp->maxerror) || in compat_sys_adjtimex() 965 __get_user(txc.esterror, &utp->esterror) || in compat_sys_adjtimex() 966 __get_user(txc.status, &utp->status) || in compat_sys_adjtimex() 967 __get_user(txc.constant, &utp->constant) || in compat_sys_adjtimex() 968 __get_user(txc.precision, &utp->precision) || in compat_sys_adjtimex() [all …]
|
D | time.c | 210 struct timex txc; /* Local copy of parameter */ in SYSCALL_DEFINE1() local 217 if(copy_from_user(&txc, txc_p, sizeof(struct timex))) in SYSCALL_DEFINE1() 219 ret = do_adjtimex(&txc); in SYSCALL_DEFINE1() 220 return copy_to_user(txc_p, &txc, sizeof(struct timex)) ? -EFAULT : ret; in SYSCALL_DEFINE1()
|