dln2_transfer_tx(9)
π dln2_transfer_tx(9) β like, the Kernel API Manual but make it make sense
okay bestie, so this is a page straight out of the Kernel API Manual (that's the manual name, we're folding it in, you're welcome π), and it's about dln2_transfer_tx β the lowkey icon of the dln2 family. let's get into it β¨
β¨ NAME β¨
dln2_transfer_tx β a variant of @dln2_transfer() where the RX buffer is not needed π¦
like, it's the same vibe as dln2_transfer(), just without the whole "give me a buffer to receive stuff into" situation. no RX, no problem π
πΈ SYNOPSIS πΈ
int dln2_transfer_tx (struct platform_device *pdev , u16 cmd , const
void *obuf , unsigned obuf_len );
that's the whole signature, fr fr. int coming back atcha, pdev, cmd, obuf, obuf_len. she's compact, she's iconic π
π«Ά ARGUMENTS π«Ά
ngl the original page is a little mysterious here and just says -- undescribed -- for all of them π so here's the honest tea:
pdevβ -- undescribed --cmdβ -- undescribed --obufβ -- undescribed --obuf_lenβ -- undescribed --
but DON'T panic, bestie, because the DESCRIPTION section below literally describes every single one of them. slay for the sequel π
π DESCRIPTION π
okay so here's who's who in the cast:
pdevβ the sub-device which is issuing this transfer πcmdβ the command to be sent to the deviceobufβ the buffer to be sent to the device; it can beNULLif the user doesn't need to transmit data with this command πobuf_lenβ the size of the buffer to be sent to the device
and then, the return tea:
return 0 for success, negative value for errors π
that's it, that's the contract. zero means we ate. negative means something went sideways and you should probably look at it π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/mfd/dln2.h dln2_unregister_event_cb(9)dln2_transfer(9)dln2_transfer_rx(9)
the whole dln2 friend group, honestly. go say hi π«Ά
and that's the page, bestie π this one came to you from the ./include/linux/mfd corner of the world, dated October 2026, and it's dln2_transfer_tx(9) β no cap, that's the whole thing. bye bestieee πβ¨
π¦ 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