dln2_transfer_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dln2_transfer_rx(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk: this is a page straight out of the Kernel API Manual, and it's all about dln2_transfer_rx β€” literally the version of @dln2_transfer() where you don't need a TX buffer. no TX era ✨


🌸 NAME 🌸

dln2_transfer_rx β€” variant of @dln2_transfer() where TX buffer is not needed

like, the whole vibe is "receive only, no sending bag needed" πŸ’…


✨ SYNOPSIS ✨

int dln2_transfer_rx (struct platform_device *pdev , u16 cmd , void
*ibuf , unsigned *ibuf_len );

that's the whole call, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

so the manual is honestly kind of shy about these four, here's exactly what it gives us:

  • pdev β€” -- undescribed -- (the docs said nothing. iconic behaviour, honestly 😭 but the description below spills the tea)
  • cmd β€” -- undescribed -- (again, blank. the description has you covered tho πŸ’–)
  • ibuf β€” -- undescribed -- (yes bestie, also blank β€” keep reading πŸ‘€)
  • ibuf_len β€” -- undescribed -- (blank here too, but the description explains it properly)
ngl the ARGUMENTS section is giving "left on read" πŸ’€ β€” but every single detail is in DESCRIPTION, so don't skip it!

πŸ’– DESCRIPTION πŸ’–

here's the actual tea, laid out one arg at a time:

  • pdev β€” the sub-device which is issuing this transfer
  • cmd β€” the command to be sent to the device
  • ibuf β€” any data associated with the response will be copied here; it can be NULL if the user doesn't need the response data πŸ™ˆ
  • ibuf_len β€” must be initialized to the input buffer size; it will be modified to indicate the actual data transferred ⭐

and the return value? slay:

return 0 for success, negative value for errors πŸ’€βœ¨

like yes, negative means bad vibes, 0 means we ate πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/mfd/dln2.h, plus these icons:

go read those too, iykyk 🧚


okay that's the whole page! 🌈 it lives over in ./include/linux/mfd, stamped October 2026 β€” so yeah, from the future, and still serving πŸ’œ mwah, study hard bestie πŸ“

πŸ“¦ where this page comes from