fsm_newstate(9)
hey bestie, welcome to fsm_newstate(9) from the Kernel API Manual β¨ this is the little function that changes a finite state machineβs state, and yes itβs giving main character energy π
πΈ NAME πΈ
fsm_newstate β modifies the state of a finite state machine. thatβs it, thatβs the vibe π¦
β¨ SYNOPSIS β¨
void fsm_newstate (fsm_instance *fi , int newstate );
π ARGUMENTS π
fiβ pointer to FSM. like, hand over the FSM youβre working with π«Άnewstateβ the new state for this FSM. the state itβs switching into π
π₯ DESCRIPTION π₯
okay so hereβs the important part, bestie: this does not trigger an event, and it does not call an action function. no cap. it just handles the state change.
what it does do? it wakes up any processes waiting on the FSMβs wait queue. so all those sleepy little processes get the memo and are back on their feet πβ¨
π SEE ALSO π
Kernel file: ./drivers/s390/net/fsm.h
init_fsm(9)kfree_fsm(9)fsm_event(9)fsm_getstate(9)fsm_getstate_str(9)fsm_settimer(9)fsm_deltimer(9)fsm_addtimer(9)fsm_modtimer(9)
mwah π thatβs the whole page, bestie β source/version is ./drivers/s390/net, and the date is October 2026 ππ¦
π¦ 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