max77759_maxq_command(9)
π max77759_maxq_command(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes that's the whole manual name, we're fancy here β and today's main character is max77759_maxq_command, which is literally just "send a MaxQ command, then sit there and wait for the response and all the data that comes with it" π«Ά. No cap, that's the whole vibe.
πΈ NAME πΈ
max77759_maxq_command β issue a MaxQ command and wait for the response and associated data
like it sends the thing, then it waits, because we do not ghost our hardware πβ¨
π SYNOPSIS π
int max77759_maxq_command (struct max77759 *max77759 , const struct
max77759_maxq_command *cmd , struct max77759_maxq_response *rsp );
look at that signature. iconic. three args, one int coming back at you π
π¦ ARGUMENTS π¦
max77759β the coremax77759device handle. your main character device, fr fr πcmdβ the command to be sent. this is the whole point of the function, ngl π¨rspβ any response data associated with the command gets copied in here; it can beNULLif the command has no response (other than the ACK). so like, no data? no problem, passNULLand vibe π
β RETURN β
0 on success, a negative error number otherwise. that's it, that's the check β zero means slay, negative means π
π SEE ALSO π
- Kernel file
./include/linux/mfd/max77759.henummax77759_chgr_chgin_dtls_status(9) - enum
max77759_chgr_bat_dtls_states(9) - enum
max77759_chgr_chg_dtls_states(9) - struct
max77759(9) - struct
max77759_maxq_command(9) - struct
max77759_maxq_response(9)
go read those too, iykyk π§ββοΈπ
real talk: don't forget to actually check that return value. a negative error number is not a vibe check you want to fail π
and that's the page, bestie π β brought to you by the source/version line ./include/linux/mfd, dated October 2026, which is giving very much "signed, sealed, delivered" energy. mwah πβ¨
π¦ 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