diff options
| author | Martijn Coenen <maco@google.com> | 2016-09-30 14:10:07 +0200 |
|---|---|---|
| committer | Trilok Soni <tsoni@codeaurora.org> | 2017-02-02 09:30:50 -0800 |
| commit | edaed8a883a405aad7b467139fd10388dca0433e (patch) | |
| tree | 9ce99d9353e510d7c41bbb9d70ab291be8e61402 /include/linux/compiler-gcc.h | |
| parent | d7a51e2fb5ce81c817fec3466aae4c40241c717f (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: Ia9bb2c588d932b6627a04baf4a62a09ae6aca087
Signed-off-by: Martijn Coenen <maco@google.com>
Git-commit: 34b8f97791ba0c2ee897993484df5ee70a01d780
Git-repo: https://git.linaro.org/kernel/linux-linaro-stable
[tsoni@codeaurora.org: Fixed 32 bit compilation]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions
