fsm_event(9)
π fsm_event(9) β the kernel API manual, bestie edition
okay so you found the fsm_event(9) page, iconic, welcome π this is the little function that pokes a finite state machine and tells it "hey girl, something happened."
β¨ NAME β¨
fsm_event β emits an event to a finite state machine π
β¨ SYNOPSIS β¨
int fsm_event (fsm_instance *fi , int event , void *arg );
literally that's the whole signature, no cap. β¨
β¨ ARGUMENTS β¨
fiβ pointer to the FSM that should receive the event π«Ά she's the one getting the news.eventβ the event to be delivered π¬ like a little group-chat message but for state machines.argβ a generic argument, passed to the action function π it just gets handed straight over, no questions asked.
β¨ DESCRIPTION β¨
so here's the vibe: if an action function is defined for the current state/event combination, that function is called with the provided arguments. that's it. that's the whole plot π the state machine checks "do I have a handler for this exact state + event combo?" and if yes, it runs it with the args you gave.
β¨ RETURN β¨
0β success, the action function was called π₯ ate and left no crumbs.1β state/event out of range, or no action function defined π so basically nothing got called.
β¨ SEE ALSO β¨
the whole friend group, go say hi π:
- Kernel file
./drivers/s390/net/fsm.h init_fsm(9)kfree_fsm(9)fsm_newstate(9)fsm_getstate(9)fsm_getstate_str(9)fsm_settimer(9)fsm_deltimer(9)fsm_addtimer(9)fsm_modtimer(9)
and that's the page, babe π this little gem lives in ./drivers/s390/net, dated October 2026, and it's the fsm_event(9) manual β so go forth, emit your events, and slay ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms