• Martijn Coenen's avatar
    binder: Add extra size to allocator · 4bfac80a
    Martijn Coenen authored
    The binder_buffer allocator currently only allocates
    space for the data and offsets buffers of a Parcel.
    This change allows for requesting an additional chunk
    of data in the buffer, which can for example be used
    to hold additional meta-data about the transaction
    (eg a security context).
    
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Martijn Coenen <maco@google.com>
    Cc: Arve Hjønnevåg <arve@android.com>
    Cc: Amit Pundir <amit.pundir@linaro.org>
    Cc: Serban Constantinescu <serban.constantinescu@arm.com>
    Cc: Dmitry Shmidt <dimitrysh@google.com>
    Cc: Rom Lemarchand <romlem@google.com>
    Cc: Android Kernel Team <kernel-team@android.com>
    Signed-off-by: default avatarMartijn Coenen <maco@google.com>
    Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    4bfac80a
binder.c 107 KB