Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp164096pxb; Wed, 14 Jul 2021 21:29:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxJZMjQ+FG3S9uIuJHLqHfzXIo6qRtoyxhOyAxdkYCqeIsbOVCyaAedk18XV9DQU6/RwmR X-Received: by 2002:a17:906:2d51:: with SMTP id e17mr2652809eji.500.1626323344881; Wed, 14 Jul 2021 21:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626323344; cv=none; d=google.com; s=arc-20160816; b=zEDgvQHxCDJ84SwVhym3RMtxQXj11W9s6RBBVvdMuob7ejhbs8EoIXG5HZAvQEVX80 CulYOlcwm4ooRJzCYDn17bTbtUF/Bw0q7qmcVZPOaUVSihhWCUIYdmpRum3NSg9F4rTY s7XbTZLJQpc8NaVCbCCNTplep7xiClZjuyCD385WSczeiqSaK8HjT49HsDTTGIdi7hBk YKAWwShAvSDpHmJEoGSvWh2fhpDOQFmQhTab1uwQzlauHHH+QPA1e2oOQVc+8pPN5oOc 9J0rJEW//e56aFfeVKiF+3G/jZTS/qNzUC5rhJSxb9xPA438wRhemNZ/LjAoCNuXP2Fh 1QEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=HilRbJ6r95NIvn8dHJ5PVh0HLH8oAFB6AVFV3SK/JO4=; b=yu23COkbL2xQ4D5yonhmk9Mbcs6XUllQuyJhbPS9pmWI60gL6u/Ou2LcO+eGHK46hR f95Wq7C3E0/taihm/kXdkIh1q2zNIJcoN7FEWjWTWgbnVS6tzpYNzPH1Koi6YcHxgFmI J00th5oIUMHWKa5pMYzOkL6Y76HeKRzr2kmmcY40hssdn+/NMl3/ofn2JXEpsjYxJ6l8 gwAyNlPARHsKiYidNkki6FeljrDf6G2knRfl9suBJyvSgI76OiSRs8fhByFl+JTu+K7H ZE6cXvtahuRJLUQHeVqs37upWxx7tP9H3meS+ZJmTeEkNf54TBcodtjZGyBdSH4bDkWK Thng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZyHuNUO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l4si1223249ejc.371.2021.07.14.21.28.42; Wed, 14 Jul 2021 21:29:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZyHuNUO3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233467AbhGODVO (ORCPT + 99 others); Wed, 14 Jul 2021 23:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232754AbhGODVN (ORCPT ); Wed, 14 Jul 2021 23:21:13 -0400 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A425EC06175F for ; Wed, 14 Jul 2021 20:18:20 -0700 (PDT) Received: by mail-qk1-x74a.google.com with SMTP id a6-20020a37b1060000b02903b488f9d348so2723260qkf.20 for ; Wed, 14 Jul 2021 20:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=HilRbJ6r95NIvn8dHJ5PVh0HLH8oAFB6AVFV3SK/JO4=; b=ZyHuNUO3vFBpbCV326hQjWqLonrGb0UGGqJL/KLuP0rK++g0O7V0TEkQRK1ln3AUI2 OzUF388BN1C5ki5dn+Fxmhl1+xDV68FI+7oirwUNrT8RElY7iTc+sLbPN3IFUhlUKIwY PGVQ2rV8Lm7o5ioyQzxbA9usiLNozj13hsVy78jddX0QS3qU2xEn4M9pv76/lKZQLFop J0xJw4FGX9aGEm/U9FJh5r/X6xjQU+apUlHgcbzXSqDutzMtlknV5KBQGOIffzW8uZuv rJJVx6jni+4+6TbgF7qvOtPGgl0C+hRJmIt0y1dHCJvEFBXl8/NNfDrw22oq3gPP/tlm x+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=HilRbJ6r95NIvn8dHJ5PVh0HLH8oAFB6AVFV3SK/JO4=; b=G9uDiEX40/UURrW8ZRVsZOKaHxV/ub7fGoQlIYiUZ/9XyN4wHSwjwXLIO9rFnYvPYo 4bit0c+ozTrJqcfZwK9XfLE6RlEsxqDCBU/y5Aj/9zMjMIeLRSQ/NK7xP6j/kJWrcIVt zN0PcMBMATdGbv4Wlq7QTtaL1cLVlDCXBEAzZ7lRDbCwSGMyOd7eVzyIcz3BVEQ+Aoxn 1g52NRklT09ewpbQi1NgCtWYOTur9LfGk3xm9MHP9U1qONzDcp59RIky2dmODRaA2ACw CVb0qwH+rPmWKIvVkje2i5z9tXPS2AMeIhOnR55De27+Um22EbDDCsCw7jFOXuTC3aXc R8cQ== X-Gm-Message-State: AOAM530GRDpKb7VDoSOFoWUp+deN0bf3zsDyWrp4dKupotf0u0GynPmN tfy8NTZgJsh1rr/Hdk+ch/WIW9Vi54jxkQ== X-Received: from xllamas.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:b1]) (user=cmllamas job=sendgmr) by 2002:a05:6214:1647:: with SMTP id f7mr1800081qvw.18.1626319099797; Wed, 14 Jul 2021 20:18:19 -0700 (PDT) Date: Thu, 15 Jul 2021 03:18:04 +0000 In-Reply-To: <20210715031805.1725878-1-cmllamas@google.com> Message-Id: <20210715031805.1725878-2-cmllamas@google.com> Mime-Version: 1.0 References: <20210707162419.15510-1-cmllamas@google.com> <20210715031805.1725878-1-cmllamas@google.com> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog Subject: [PATCH v2 2/3] docs: binderfs: add section about feature files From: Carlos Llamas To: Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Christian Brauner Cc: Joel Fernandes , Steven Moreland , kernel-team@android.com, linux-kernel@vger.kernel.org, Carlos Llamas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Carlos Llamas --- Documentation/admin-guide/binderfs.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/admin-guide/binderfs.rst b/Documentation/admin-guide/binderfs.rst index 199d84314a14..41a4db00df8d 100644 --- a/Documentation/admin-guide/binderfs.rst +++ b/Documentation/admin-guide/binderfs.rst @@ -72,3 +72,16 @@ that the `rm() `_ tool can be used to delete them. Note that the ``binder-control`` device cannot be deleted since this would make the binderfs instance unusable. The ``binder-control`` device will be deleted when the binderfs instance is unmounted and all references to it have been dropped. + +Binder features +--------------- + +Assuming an instance of binderfs has been mounted at ``/dev/binderfs``, the +features supported by the binder driver can be located under +``/dev/binderfs/features/``. The presence of individual files can be tested +to determine whether a particular feature is supported by the driver. + +Example:: + + cat /dev/binderfs/features/oneway_spam_detection + 1 -- 2.32.0.93.g670b81a890-goog