binder_do_d...d_txn_copies(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME

okay so bestie, this page is binder_do_d...d_txn_copies(9) from the Kernel API Manual ✨ and the actual function is binder_do_deferred_txn_copies β€” it’s the one that does copy and fixup scatter-gather data πŸ’…


✨ SYNOPSIS

int binder_do_deferred_txn_copies (struct binder_alloc *alloc , struct
       binder_buffer *buffer , struct list_head *sgc_head , struct list_head
       *pf_head );

🫢 ARGUMENTS

  • alloc β€” the binder_alloc that’s associated with buffer 🧚
  • buffer β€” the binder buffer in the target process πŸŽ€
  • sgc_head β€” list_head of the scatter-gather copy list ✨
  • pf_head β€” list_head of the pointer fixup list πŸ’–

🌸 DESCRIPTION

So what it does is: it processes all the elements of sgc_head, applies the fixups from pf_head, and copies the scatter-gather data from the source process’ user buffer over to the target’s buffer πŸ¦‹

It is expected that the list creation and processing all occurs during binder_transaction, so these lists are only accessed in local context β€” that’s the vibe check, and it passes 😌✨


πŸ’– RETURN

  • 0=success, else -errno β€” so 0 is the success slay, and otherwise you get the -errno situation πŸ˜­πŸ’€

πŸ”₯ SEE ALSO

okay bestie, the SEE ALSO section is lowkey a whole group chat πŸ’… they all hang out in the kernel file ./drivers/android/binder.c, and every single one is here, no skips:


source/version: ./drivers/android Β· date: October 2026 Β· page: binder_do_d...d_txn_copies(9) πŸ«ΆπŸ’–

πŸ“¦ where this page comes from