fsm_newstate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


mwah πŸ’‹ that’s the whole page, bestie β€” source/version is ./drivers/s390/net, and the date is October 2026 πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from