lbs_cmd_copyback(9)
π lbs_cmd_copyback(9) β Kernel API Manual π
okay bestie, so this page is literally about lbs_cmd_copyback β it's the simple callback that copies response back into command β¨ no cap, that's the whole vibe. it's a little helper that takes the reply you got and shoves it back into the command struct. iconic behavior honestly π«Ά
β¨ SYNOPSIS β¨
int lbs_cmd_copyback (struct lbs_private *priv , unsigned long extra ,
struct cmd_header *resp );
that's the whole signature, copy it exactly, don't freestyle π
π ARGUMENTS π
privβ a pointer to thestruct lbs_privatestructure π like, the main character of the whole driver, iykyk.extraβ a pointer to the original command structure for which (yes, the original text lowkey trails off there, we're keeping it fr fr) π¦respβ a pointer to the command response πΈ the thing that came back from the hardware.
π RETURN π
0 on success, error on failure β that's it, that's the whole contract. check it, always.
π SEE ALSO π
the kernel file is right here, bestie:
./drivers/net/wireless/marvell/libertas/cmd.c
and the whole friend group of related functions β read up, it's giving study group energy π:
lbs_cmd_async_callback(9)is_command_allowed_in_ps(9)lbs_update_hw_spec(9)lbs_set_ps_mode(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)
β οΈ quick vibe check: this page doesn't spell out any extra caveats, so don't go inventing behavior for it β just copy the response back and move on π
mwah π this page is brought to you by the kernel tree at ./drivers/net/wireless/marvell..., dated October 2026 β and yes, lbs_cmd_copyback(9) is the same page you just read, slay π
π¦ 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