gsi_trans_page_add(9)
β¨ gsi_trans_page_add(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for gsi_trans_page_add π
this one is genuinely so straightforward and honestly kind of iconic β it's the "hey, add a page transfer to this transaction" girlie π
πΈ NAME πΈ
gsi_trans_page_add β add a page transfer to a transaction π¦
like, that's it. that's the whole vibe. you've got a transaction, you've got a page, and you want that page's transfer to be part of the transaction. slay.
β¨ SYNOPSIS β¨
int gsi_trans_page_add (struct gsi_trans *trans , struct page *page ,
u32 size , u32 offset );
return type is int, no cap π
π ARGUMENTS π
transβ the Transaction. your main character, the thing everything gets added to π«Άpageβ a Page pointer. literally just a pointer to a page, bestie, nothing mysterious β¨sizeβ Number of bytes (starting atoffset) to transfer. so it's not the whole page necessarily, it'ssizebytes starting fromoffset. math is mathing πoffsetβ Offset within page for start of transfer. i.e. where in the page the transfer begins. iykyk π
note thatsizeandoffsetare u32 exactly as written, and the function returns an int β keep those types, don't let anyone gaslight you into changing them π
π₯ SEE ALSO π₯
so here's the whole friend group, and you should lowkey go read them all:
- Kernel file
./drivers/net/ipa/gsi_trans.hstructgsi_trans(9) gsi_trans_pool_init(9)gsi_trans_pool_alloc(9)gsi_trans_pool_exit(9)gsi_trans_pool_init_dma(9)gsi_trans_pool_alloc_dma(9)gsi_trans_pool_exit_dma(9)gsi_channel_trans_idle(9)gsi_channel_trans_alloc(9)gsi_trans_free(9)gsi_trans_cmd_add(9)gsi_trans_skb_add(9)gsi_trans_commit(9)gsi_trans_commit_wait(9)gsi_trans_read_byte(9)gsi_trans_read_byte_done(9)
like, that's the entire roster and they all ate π the struct itself lives in ./drivers/net/ipa/gsi_trans.h so that's your first stop, bestie π
okay that's the whole page and it was lowkey a vibe π this little gem comes to you from the ./drivers/net/ipa corner of the kernel, dated October 2026 β go forth and add your page transfers, 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