binder: add BINDER_GET_EXTENDED_ERROR ioctl
authorCarlos Llamas <cmllamas@google.com>
Fri, 29 Apr 2022 23:56:41 +0000 (23:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 13:43:24 +0000 (15:43 +0200)
commitbd32889e841c12533d09a1bd02bba932baa9ed8f
tree3eb429f9618c91bdfcc030a0c70f6a8b3e3f703b
parent9474be34a72726c5a20467e36d9b08102ff9d304
binder: add BINDER_GET_EXTENDED_ERROR ioctl

Provide a userspace mechanism to pull precise error information upon
failed operations. Extending the current error codes returned by the
interfaces allows userspace to better determine the course of action.
This could be for instance, retrying a failed transaction at a later
point and thus offloading the error handling from the driver.

Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20220429235644.697372-3-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_internal.h
include/uapi/linux/android/binder.h