async_xor(9)
β¨ async_xor(9) β¨
okay so bestie, this is a page from the Kernel API Manual, section 9 β yes, the kernel section, we're literally in the big leagues π
πΈ NAME πΈ
async_xor β the function that attempts to xor a whole set of blocks using a dma engine π
π¦ SYNOPSIS π¦
struct dma_async_tx_descriptor * async_xor (struct page *dest , struct
page **src_list , unsigned int offset , int src_cnt , size_t len ,
struct async_submit_ctl *submit );
like, the whole thing returns a struct dma_async_tx_descriptor *, no cap β¨
π ARGUMENTS π
destβ the destination page, the main character of this operation πsrc_listβ an array of source pages (yes, array, plural, we have options here)offsetβ the common src/dst offset where the transaction starts getting going πsrc_cntβ how many source pages you're feeding in, count them, bestielenβ length in bytes, fr frsubmitβ the submission / completion modifiers, the little vibe settings ποΈ
π₯ DESCRIPTION π₯
the honored flags are, and I quote the energy: ASYNC_TX_ACK, ASYNC_TX_XOR_ZERO_DST, ASYNC_TX_XOR_DROP_DST β iconics only π«
so here's the tea: xor_gen always uses the dest as a source, which means you must set the ASYNC_TX_XOR_ZERO_DST flag if you do not want the dest data included in the calculation. periodt. the assumption with dma engines is that they only use the destination buffer as a source when it's explicitly specified in the source list π
src_list note: if the dest is also a source, it must be at index zero. no negotiating on that one π«Ά and heads up β the contents of this array will be overwritten if a scribble region is not specified π
π SEE ALSO π
- Kernel file
./crypto/async_tx/async_xor.cπ async_xor_offs(9)βasync_xor_val_offs(9)β
and that's the whole page, bestie!! π this little beauty lives in ./crypto/async_tx and it's dated October 2026 β so like, from the future, we love a timeless queen ππ§β¨
π¦ 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