Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_time.c
Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Lines | linux_clock_settime(struct thread *td, struct linux_clock_settime_args *args) | ||||
error = linux_to_native_timespec(&ts, <s); | error = linux_to_native_timespec(&ts, <s); | ||||
if (error != 0) { | if (error != 0) { | ||||
LIN_SDT_PROBE1(time, linux_clock_settime, conversion_error, | LIN_SDT_PROBE1(time, linux_clock_settime, conversion_error, | ||||
error); | error); | ||||
LIN_SDT_PROBE1(time, linux_clock_settime, return, error); | LIN_SDT_PROBE1(time, linux_clock_settime, return, error); | ||||
return (error); | return (error); | ||||
} | } | ||||
error = kern_clock_settime(td, nwhich, &ts); | error = kern_clock_settime(td, nwhich, &ts, NULL); | ||||
if (error != 0) | if (error != 0) | ||||
LIN_SDT_PROBE1(time, linux_clock_settime, settime_error, error); | LIN_SDT_PROBE1(time, linux_clock_settime, settime_error, error); | ||||
LIN_SDT_PROBE1(time, linux_clock_settime, return, error); | LIN_SDT_PROBE1(time, linux_clock_settime, return, error); | ||||
return (error); | return (error); | ||||
} | } | ||||
int | int | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |