diff options
author | Martijn Coenen <maco@google.com> | 2016-09-30 14:10:07 +0200 |
---|---|---|
committer | Martijn Coenen <maco@android.com> | 2016-10-31 15:14:59 +0100 |
commit | dd9bc4f9f144a89d52a197fcf0ea033a287b7095 (patch) | |
tree | ab455237601eded768c7b2cf8cb444d0a558cee9 /net/ipv6/tcp_ipv6.c | |
parent | 843a25788dba57df35820bcc91796fb30b56335c (diff) |
android: binder: support for scatter-gather.
Previously all data passed over binder needed
to be serialized, with the exception of Binder
objects and file descriptors.
This patchs adds support for scatter-gathering raw
memory buffers into a binder transaction, avoiding
the need to first serialize them into a Parcel.
To remain backwards compatibile with existing
binder clients, it introduces two new command
ioctls for this purpose - BC_TRANSACTION_SG and
BC_REPLY_SG. These commands may only be used with
the new binder_transaction_data_sg structure,
which adds a field for the total size of the
buffers we are scatter-gathering.
Because memory buffers may contain pointers to
other buffers, we allow callers to specify
a parent buffer and an offset into it, to indicate
this is a location pointing to the buffer that
we are fixing up. The kernel will then take care
of fixing up the pointer to that buffer as well.
Change-Id: I02417f28cff14688f2e1d6fcb959438fd96566cc
Signed-off-by: Martijn Coenen <maco@google.com>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions