tick_switch_to_oneshot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ tick_switch_to_oneshot(9) πŸ‘‘

okay so bestie, this one's straight from the Kernel API Manual and the vibe is simple: tick_switch_to_oneshot switches to oneshot mode. that's the whole plot, no cap πŸ’…

✨ NAME ✨

tick_switch_to_oneshot β€” switch to oneshot mode πŸ¦‹

🌸 SYNOPSIS 🌸

int tick_switch_to_oneshot (void (*handler)(struct clock_event_device *)
);

πŸŽ€ ARGUMENTS πŸŽ€

  • handler β€” function to call when an event occurs on the tick device. that's the arg, she's giving callback energy 🫢

πŸ’– RETURN πŸ’–

  • 0 β€” success, slay βœ…
  • -EINVAL β€” if the tick device is not present, not functional, or does not support oneshot mode. yeah, that's the "bestie no" path 😭

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, periodt πŸ’‹ source/version is ./kernel/time, dated October 2026 β€” go be iconic with your oneshot mode πŸ§šπŸ’œ

πŸ“¦ where this page comes from