spi_split_transfers_maxsize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 spi_split_transfers_maxsize(9) 🌸

okay bestie, welcome to the kernel API manual page for spi_split_transfers_maxsize β€” yes that's the whole vibe, and yes it's a (9) page, so it's a kernel-internal one, iykyk πŸ’…


✨ NAME ✨

spi_split_transfers_maxsize β€” split spi transfers into multiple transfers when an individual transfer exceeds a certain size πŸŽ€

like, if one transfer is doing Too Much, this function chops it up. main character energy for your SPI messages, fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

int spi_split_transfers_maxsize (struct spi_controller *ctlr , struct
spi_message *msg , size_t maxsize );

πŸ’– ARGUMENTS πŸ’–

  • ctlr β€” the spi_controller for this transfer πŸ‘‘ (the controller in question, the one running the show)
  • msg β€” the spi_message to transform ✨ (this is the message getting the glow-up)
  • maxsize β€” the maximum when to apply this 🌸 (i.e. the size threshold that triggers the whole thing)

🌈 DESCRIPTION 🌈

So here's the tea β˜• β€” this function allocates resources that are automatically freed during the spi message unoptimize phase.

Which means… this function should only be called from optimize_message callbacks. periodt. πŸ’€

Don't try to call it from anywhere else, bestie, the cleanup only happens in that unoptimize phase, and we're not about to leak. nope. not on our watch πŸ™ˆ


⭐ RETURN ⭐

status of transformation πŸ’« (yes, that's the whole return description β€” she's concise, she's iconic)


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, gathered together 🫢 β€” and it is a long guest list, so buckle up:


ok but seriously: optimize_message callbacks only. the resources get freed in the unoptimize phase, so calling this anywhere else is a no-no πŸ’€πŸ’…

and that's the page, bestie! πŸŽ€ this little love letter lives in the source tree under ./drivers/spi (yeah, the ./drivers/spi directory), dated October 2026 in the footer, and it's filed under the manual name spi_split_transfers_maxsize(9) β€” go forth and split those transfers responsibly, mwah πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from