clock_settime
.clock_settime = ptp_clock_settime,
int (*clock_settime)(struct posix_clock *pc,
if (cd.clk->ops.clock_settime)
err = cd.clk->ops.clock_settime(cd.clk, ts);
SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
CASE_TEST(clock_settime); EXPECT_SYSER(1, clock_settime(CLOCK_MONOTONIC, &ts), -1, EINVAL); break;
if (clock_settime(clkid, &ts)) {
if (clock_settime(CLOCK_REALTIME, &ts)) {
if (clock_settime(clkid, &ts)) {
clock_settime(clocks[clock_index].id, &cur_ts);