lbs_set_ps_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ lbs_set_ps_mode(9) β€” the kernel API manual, but make it cute πŸ’€

okay so we're in the Kernel API Manual today bestie, and the star of the show is lbs_set_ps_mode β€” literally the function that Sets the Power Save mode. that's it, that's the vibe. your wifi card is gonna take a lil nap and this is the girl who tucks it in 😴✨


🌸 SYNOPSIS 🌸

int lbs_set_ps_mode (struct lbs_private *priv , u16 cmd_action , bool block );

like, look at that signature. int going in, int coming out, three little args in the middle. she's serving function prototype realness πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • priv β€” a pointer to the struct lbs_private structure. this is the main character of the whole libertas situation, hand her over and she'll know what to do 🫢
  • cmd_action β€” the Power Save operation you want. it's a u16, and the two values you can pass are PS_MODE_ACTION_ENTER_PS or PS_MODE_ACTION_EXIT_PS. so basically: going to sleep, or waking up. that's the whole plot πŸŒ™ / β˜€οΈ
  • block β€” a bool that decides whether to block on a response or not. true = sit there and wait for the reply like a loyal bestie, false = send it and keep it moving, no strings attached πŸ¦‹

⭐ RETURN ⭐

0 on success, error on failure. that's it. zero is the slay outcome, anything else means something went sideways β€” no cap πŸ’€


πŸ’œ SEE ALSO πŸ’œ

kernel file: ./drivers/net/wireless/marvell/libertas/cmd.c β€” that's where she lives, go say hi 🏠

and the whole friend group, in order, because we do not leave anyone out:

eighteen whole entries, we counted, we did not skip a single one, periodt πŸ‘‘


quick reminder bestie: cmd_action only takes PS_MODE_ACTION_ENTER_PS or PS_MODE_ACTION_EXIT_PS. don't freestyle it, the manpage said so and I'm just the messenger πŸ™ˆ

okay that's the whole page!! this cutie came out of ./drivers/net/wireless/marvell... and she's dated October 2026, filed under lbs_set_ps_mode(9) β€” go take a nap, you earned it πŸ’€πŸŽ€πŸ’–

πŸ“¦ where this page comes from