fsm_addtimer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so we're in the Kernel API Manual, and this page is all about fsm_addtimer(9) β€” the function that adds and starts a timer for an FSM instance. bestie, that's the whole vibe. ✨


✨ SYNOPSIS ✨

int fsm_addtimer (fsm_timer *timer , int millisec , int event , void
       *arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • timer β€” the timer to be added, and yes: timer->fi must point to the FSM instance. no cap πŸ’…
  • millisec β€” duration in milliseconds after which the timer expires. ⏳
  • event β€” event to trigger when the timer expires. πŸ”₯
  • arg β€” generic argument provided to the event handler. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one starts a timer that will trigger the specified event after the given duration. The timer must have been initialized with fsm_settimer first β€” like, that's not a suggestion, bestie. πŸ’…

⚠️ reminder: the timer must have been initialized with fsm_settimer. do not skip this, i'm literally begging. 😭

πŸ’– RETURN πŸ’–

Always returns 0. literally always. no dramatic error code, no plot twist β€” just 0. periodt. 🫢


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/s390/net/fsm.h β€” and the whole squad: init_fsm(9), kfree_fsm(9), fsm_event(9), fsm_newstate(9), fsm_getstate(9), fsm_getstate_str(9), fsm_settimer(9), fsm_deltimer(9), fsm_modtimer(9). πŸ’œ


peace out from ./drivers/s390/net, October 2026 β€” fsm_addtimer(9) πŸ’…

πŸ“¦ where this page comes from