Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 33) sorted by relevance

12

/systemd-251/src/libsystemd/sd-event/
Devent-util.c14 clockid_t clock, in event_reset_time() argument
45 if (c != clock) in event_reset_time()
50 (int)clock); in event_reset_time()
68 r = sd_event_add_time(e, s, clock, usec, accuracy, callback, userdata); in event_reset_time()
91 clockid_t clock, in event_reset_time_relative() argument
105 r = sd_event_now(e, clock, &usec_now); in event_reset_time_relative()
109 …return event_reset_time(e, s, clock, usec_add(usec_now, usec), accuracy, callback, userdata, prior… in event_reset_time_relative()
Devent-util.h11 clockid_t clock,
22 clockid_t clock,
Dsd-event.c541 static EventSourceType clock_to_event_source_type(clockid_t clock) { in clock_to_event_source_type() argument
543 switch (clock) { in clock_to_event_source_type()
1148 clockid_t clock) { in event_setup_timer_fd() argument
1158 fd = timerfd_create(clock, TFD_NONBLOCK|TFD_CLOEXEC); in event_setup_timer_fd()
1182 static int setup_clock_data(sd_event *e, struct clock_data *d, clockid_t clock) { in setup_clock_data() argument
1188 r = event_setup_timer_fd(e, d, clock); in setup_clock_data()
1232 clockid_t clock, in sd_event_add_time() argument
1249 if (!clock_supported(clock)) /* Checks whether the kernel supports the clock */ in sd_event_add_time()
1252 type = clock_to_event_source_type(clock); /* checks whether sd-event supports this clock */ in sd_event_add_time()
1261 r = setup_clock_data(e, d, clock); in sd_event_add_time()
[all …]
/systemd-251/src/basic/
Dtime-util.h77 usec_t now(clockid_t clock);
78 nsec_t now_nsec(clockid_t clock);
90 #define DUAL_TIMESTAMP_HAS_CLOCK(clock) \ argument
91 IN_SET(clock, CLOCK_REALTIME, CLOCK_REALTIME_ALARM, CLOCK_MONOTONIC)
93 #define TRIPLE_TIMESTAMP_HAS_CLOCK(clock) \ argument
94 …IN_SET(clock, CLOCK_REALTIME, CLOCK_REALTIME_ALARM, CLOCK_MONOTONIC, CLOCK_BOOTTIME, CLOCK_BOOTTIM…
111 usec_t triple_timestamp_by_clock(triple_timestamp *ts, clockid_t clock);
158 bool clock_supported(clockid_t clock);
Dtime-util.c185 usec_t triple_timestamp_by_clock(triple_timestamp *ts, clockid_t clock) { in triple_timestamp_by_clock() argument
187 switch (clock) { in triple_timestamp_by_clock()
1458 bool clock_supported(clockid_t clock) { in clock_supported() argument
1461 switch (clock) { in clock_supported()
1471 return clock_gettime(clock, &ts) >= 0; in clock_supported()
/systemd-251/test/units/
Dtestsuite-30.sh15 systemd-run --on-clock-change touch /tmp/clock-changed
18 test ! -f /tmp/clock-changed
26 while test ! -f /tmp/clock-changed ; do sleep .5 ; done
Dtestsuite-43.sh102 runas testuser systemd-run --wait --user --unit=test-clock \
/systemd-251/src/systemd/
Dsd-event.h90 int sd_event_add_time(sd_event *e, sd_event_source **s, clockid_t clock, uint64_t usec, uint64_t ac…
91 int sd_event_add_time_relative(sd_event *e, sd_event_source **s, clockid_t clock, uint64_t usec, ui…
108 int sd_event_now(sd_event *e, clockid_t clock, uint64_t *usec);
146 int sd_event_source_get_time_clock(sd_event_source *s, clockid_t *clock);
Dsd-dhcp6-lease.h32 int sd_dhcp6_lease_get_timestamp(sd_dhcp6_lease *lease, clockid_t clock, uint64_t *ret);
Dsd-ndisc.h89 int sd_ndisc_router_get_timestamp(sd_ndisc_router *rt, clockid_t clock, uint64_t *ret);
Dsd-lldp-rx.h78 int sd_lldp_neighbor_get_timestamp(sd_lldp_neighbor *n, clockid_t clock, uint64_t *ret);
/systemd-251/shell-completion/zsh/
D_timedatectl62 '--adjust-system-clock[Adjust system clock when changing local RTC mode]' \
D_systemd-run38 '--on-clock-change[Defines a trigger based on system clock jumps]' \
/systemd-251/src/libsystemd-network/
Dndisc-router.c48 int sd_ndisc_router_get_timestamp(sd_ndisc_router *rt, clockid_t clock, uint64_t *ret) { in sd_ndisc_router_get_timestamp() argument
50 assert_return(TRIPLE_TIMESTAMP_HAS_CLOCK(clock), -EOPNOTSUPP); in sd_ndisc_router_get_timestamp()
51 assert_return(clock_supported(clock), -EOPNOTSUPP); in sd_ndisc_router_get_timestamp()
57 *ret = triple_timestamp_by_clock(&rt->timestamp, clock); in sd_ndisc_router_get_timestamp()
Dsd-dhcp6-lease.c25 int sd_dhcp6_lease_get_timestamp(sd_dhcp6_lease *lease, clockid_t clock, uint64_t *ret) { in sd_dhcp6_lease_get_timestamp() argument
27 assert_return(TRIPLE_TIMESTAMP_HAS_CLOCK(clock), -EOPNOTSUPP); in sd_dhcp6_lease_get_timestamp()
28 assert_return(clock_supported(clock), -EOPNOTSUPP); in sd_dhcp6_lease_get_timestamp()
34 *ret = triple_timestamp_by_clock(&lease->timestamp, clock); in sd_dhcp6_lease_get_timestamp()
Dlldp-neighbor.c785 int sd_lldp_neighbor_get_timestamp(sd_lldp_neighbor *n, clockid_t clock, uint64_t *ret) { in sd_lldp_neighbor_get_timestamp() argument
787 assert_return(TRIPLE_TIMESTAMP_HAS_CLOCK(clock), -EOPNOTSUPP); in sd_lldp_neighbor_get_timestamp()
788 assert_return(clock_supported(clock), -EOPNOTSUPP); in sd_lldp_neighbor_get_timestamp()
794 *ret = triple_timestamp_by_clock(&n->timestamp, clock); in sd_lldp_neighbor_get_timestamp()
/systemd-251/units/
Dsystemd-timedated.service.in41 SystemCallFilter=@system-service @clock
Dsystemd-timesyncd.service.in53 SystemCallFilter=@system-service @clock
/systemd-251/test/fuzz/fuzz-unit-file/
Dsystemd-machined.service32 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
Dsystemd-resolved.service42 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @s…
/systemd-251/shell-completion/bash/
Dtimedatectl42 local OPTS='-h --help --version --adjust-system-clock --no-pager
Dsystemd-run38 --on-clock-change --on-timezone-change --path-property --socket-property
/systemd-251/src/shared/
Dmeson.build72 'clock-util.c',
73 'clock-util.h',
/systemd-251/catalog/
Dsystemd.catalog.in127 The system clock has been changed to @REALTIME@ microseconds after January 1st, 1970.
531 Subject: Initial clock synchronization
536 acquired and the local system clock adjustment has been initiated.
/systemd-251/docs/
DPASSWORD_AGENTS.md30 …past. The time is specified in usecs, and refers to the `CLOCK_MONOTONIC` clock. If `NotAfter=` is…

12