lbs_set_ps_mode(9)
π€ 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 thestruct lbs_privatestructure. 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 au16, and the two values you can pass arePS_MODE_ACTION_ENTER_PSorPS_MODE_ACTION_EXIT_PS. so basically: going to sleep, or waking up. that's the whole plot π / βοΈblockβ aboolthat 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:
lbs_cmd_copyback(9)lbs_cmd_async_callback(9)is_command_allowed_in_ps(9)lbs_update_hw_spec(9)lbs_set_snmp_mib(9)lbs_get_tx_power(9)lbs_set_monitor_mode(9)lbs_get_channel(9)lbs_set_channel(9)lbs_get_rssi(9)lbs_set_11d_domain_info(9)lbs_get_reg(9)lbs_set_reg(9)lbs_allocate_cmd_buffer(9)lbs_free_cmd_buffer(9)lbs_get_free_cmd_node(9)lbs_execute_next_command(9)lbs_ps_confirm_sleep(9)
eighteen whole entries, we counted, we did not skip a single one, periodt π
quick reminder bestie:cmd_actiononly takesPS_MODE_ACTION_ENTER_PSorPS_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
- 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