binder: limits for size of data transaction
Arve Hjønnevåg
arve at android.com
Wed Apr 25 03:55:38 UTC 2012
2012/4/24 Vladimir Murzin <murzin.v at gmail.com>:
> Hello everyone,
>
> I've noticed data_size and offset_size members of
> binder_transaction_data struct (drivers/staging/android/binder.h):
>
> struct binder_transaction_data {
> ...
> size_t data_size; /* number of bytes of data */
> size_t offsets_size; /* number of bytes of offsets */
> ...
> }
>
> I wonder if there are any limitations for size of data and size of
> offset?
>
Yes, it has to fit in the mmaped area of the receiving process (max
4MB). Look at binder_alloc_buf for details.
--
Arve Hjønnevåg
More information about the devel
mailing list