slim_ctrl_clk_pause(9)
π slim_ctrl_clk_pause β from the Kernel API Manual, section 9, bestie β¨
Okay so picture this: you're deep in the Kernel API Manual, section 9, and the function is literally called slim_ctrl_clk_pause. It's giving "the controller wants to take a lil nap" energy, and honestly? Same. π
πΈ NAME πΈ
slim_ctrl_clk_pause β the function a slimbus controller calls to enter or exit 'clock pause'. No cap, that's the whole vibe. π€
β¨ SYNOPSIS β¨
int slim_ctrl_clk_pause (struct slim_controller *ctrl , bool wakeup , u8 restart );
π¦ ARGUMENTS π¦
ctrlβ the controller that's asking the bus to be paused or woken up. Like, it's the main character making the request. πwakeupβ wake this controller up from clock pause. Set it and the controller's all "rise and shine bestie". βrestartβ the restart time value per spec, used for clock pause. Lowkey important: this value isn't used when the controller is being woken up. So ifwakeupis true,restartis just sitting there like π.
π DESCRIPTION π
So the Slimbus specification needs this sequence to turn off clocks for the bus β it's not optional, it's the whole assignment. The sequence involves sending 3 broadcast messages (that's the reconfiguration sequence, periodt) to inform all devices on the bus. Three. Not two, not four. Three. π
To exit clock-pause, the controller typically wakes up the active framer device. Iconic behavior, honestly.
Here's how the API breaks it down:
- If
wakeupis false, this API executes the clock pause reconfiguration sequence. It's entering naptime mode. π΄ - If
wakeupis true, the controller's wakeup is called. Rise and grind. π₯ - For entering clock-pause,
-EBUSYis returned if a message txn is pending. So like, if there's still a transaction hanging around, the function's gonna hit you with the "busy bestie, try again" and return-EBUSY. Not me getting rejected by a return code. π
Heads up: -EBUSY is a real one β if a message txn is pending, that's the exit status you're getting when you try to enter clock-pause. No exceptions, that's the spec.
π§ SEE ALSO π§
- Kernel file
./drivers/slimbus/sched.cβ go read it, iykyk.
Aaaand that's the tea! π This page is from the kernel's ./drivers/slimbus corner of the world, dated October 2026 β mark your calendars bestie, and go pause some clocks responsibly. πβ¨π«Ά
π¦ 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