geni_se_read_proto(9)
β¨ geni_se_read_proto β¨
okay so real quick bestie, this is a page from the Kernel API Manual β yes, kernel docs, we're doing big brain stuff today π
it's geni_se_read_proto(9) and it's honestly lowkey iconic.
πΈ NAME πΈ
geni_se_read_proto β read the protocol configured for a serial engine π
like, it literally tells you which protocol your serial engine is vibing with rn. that's the whole job. no cap.
β SYNOPSIS β
u32 geni_se_read_proto (struct geni_se *se );
she takes one pointer, she gives you back a u32. short, sweet, main character energy fr fr π¦
π ARGUMENTS π
seβ pointer to the concerned serial engine. yeah, "concerned" like it's got feelings about it π just hand her thestruct geni_se *and she'll do the rest.
π RETURN π
returns the protocol value as configured in the serial engine β¨ that's it, that's the tea β whatever protocol is currently set up in there, that's the u32 you get back π«Ά
π¦ SEE ALSO π¦
squad goals, all of them, go check them out:
- kernel file
./include/linux/soc/qcom/geni-se.h - enum
geni_se_xfer_mode(9) struct geni_se(9)geni_se_setup_m_cmd(9)geni_se_setup_s_cmd(9)geni_se_cancel_m_cmd(9)geni_se_cancel_s_cmd(9)geni_se_abort_m_cmd(9)geni_se_abort_s_cmd(9)geni_se_get_tx_fifo_depth(9)geni_se_get_tx_fifo_width(9)geni_se_get_rx_fifo_depth(9)
like genuinely a whole friend group of functions, iykyk π
ngl there's nothing sketchy on this page β no flags to trip over, no weird defaults, no scary warnings. just read the proto and slay πβ¨
and that's the whole page bestie, 10/10 no notes πΈ this little gem lives in ./include/linux/soc/qcom, and the docs are stamped October 2026 β so go forth, call geni_se_read_proto(9), and remember: the protocol was in you all along ππ
π¦ 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