Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: binderfs: add section about feature files

Document how binder feature files can be used to determine whether a
feature is supported by the binder driver. "oneway_spam_detection" is
used as an example as it is the first available feature file.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20210715031805.1725878-2-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Carlos Llamas and committed by
Greg Kroah-Hartman
06e1721d fc470abf

+13
+13
Documentation/admin-guide/binderfs.rst
··· 72 72 ``binder-control`` device cannot be deleted since this would make the binderfs 73 73 instance unusable. The ``binder-control`` device will be deleted when the 74 74 binderfs instance is unmounted and all references to it have been dropped. 75 + 76 + Binder features 77 + --------------- 78 + 79 + Assuming an instance of binderfs has been mounted at ``/dev/binderfs``, the 80 + features supported by the binder driver can be located under 81 + ``/dev/binderfs/features/``. The presence of individual files can be tested 82 + to determine whether a particular feature is supported by the driver. 83 + 84 + Example:: 85 + 86 + cat /dev/binderfs/features/oneway_spam_detection 87 + 1