Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp308134lqg; Thu, 11 Apr 2024 03:48:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUG0L7eUrr84kBlaghuhOjOgo5oPiKoS9gfyTy7gdukkN+/oezz9vgtjk18IGPv0FlxOKn/MkmOhnVAqiV7Cl7azeYbEPVnZXaakJAPYQ== X-Google-Smtp-Source: AGHT+IGiW8GEmy8IYJTqlr1Vik8n4/nYQacR/7w5dTvZ7O03H0p9+E88zkm+fLBAkn7QNhtizXTL X-Received: by 2002:a17:90a:2d84:b0:2a2:40c4:5175 with SMTP id p4-20020a17090a2d8400b002a240c45175mr5307684pjd.14.1712832481617; Thu, 11 Apr 2024 03:48:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712832481; cv=pass; d=google.com; s=arc-20160816; b=ugwiyH7Lw6f3aMG2STBBbxUSrkX0vIb5DWPpZk4f2Yrx7TlNQfGZv9UeP8IQONhkaS PImrcVyFMkW4bq4d/PsAQzzpYI+aN7njkRpf0CQUJW71hNtNBjzztGk5WmGz9r6Z30fe +1hueUguu7TBEOd7+2JlrK60EYqSs2SFUsDo76oAG/x3TEgyY7XWDonYIODkpQToN+uC I054lYLDdUyGUMErUCysIe5sv/wRQJRxSnKA+8qN2zqTy45P6TcIjoAgJwuLab+pkK0Z eWw6R3Gqh/iOo7V4l63an2KHONO6QzFl/6WfMV7Eh6wG1W1m9kVuLQLJasdxVUKokVF9 WD3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LbtyjvkImbngvdT3SGkI2TgcPtxUzL7Gerl61RBykM0=; fh=xGRhfCAts54WMtKLMpGfPkfIYsTbwolGwAad8ffR8ds=; b=AWVV3l0wtvx/pqPgyOKATZVrw0CCTo7DdD10hvW4S866lm9ACHgCXbO30GSuJ9+QTL ONQoE666s2yRx16jV2WMY0xFufWkhLcrIR10hB2duWIfUDB72FUIkjJRn6E2YyLJ3Ep5 i7pl83OyoRCnHXV4nat64Dj/+Yh4LQK05C1OTpvzTUhzdi/aUXEJjLCqOMmEy60jD89k gbAAqD8dBUVuuw3fW6gxjWNRNBbV4sYdsj2Ol/B0Hay8ju0dhgfXFMFbhy3FTTRvWRAE sgbMlO65yJUoh5TBeu3h/r3YNgeKJDpoBLblaNAcIcNO3RVDS2Bm3o+vdbRIzTXqhTpm 80Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qpo1liyP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id qa7-20020a17090b4fc700b002a2e5b41d4fsi1236004pjb.148.2024.04.11.03.48.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 03:48:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qpo1liyP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-140278-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140278-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B0BEA2829E9 for ; Thu, 11 Apr 2024 10:46:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E71F146D79; Thu, 11 Apr 2024 10:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qpo1liyP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74FE0624; Thu, 11 Apr 2024 10:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712832408; cv=none; b=JnueGkYGRc6g6qm0LQFwmsArf7Y9XkiI0rSY7kcNUz3goBcPFxUelLwBQbqARXTjmRS5DbhrPdp5W6uy4obS1yzP0yJNHBD+1bYG37W9Ri4WziZ5KOdJIxbOawjk+7+7FBxvvIzVhg/yfN2aOyM07boDBDNlJ/PQ3V+jRd0TMBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712832408; c=relaxed/simple; bh=rFDZVdrid6QjJXhQJFVnZjcR5UarpY2ipJjian6ZMaU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YbOFuPk6ew8GUBpKWDvXSItvshLzqrA9BpKZ9FNSo/6DM2LP6eChePJiL0tx/3hmZUwlj8pw78a8Dkla0HBY19DFNRVK4K+1vGPRcjEQ4RuBKhQRG5n/142tCzEFV+/fkrc9xSEDJDW544l1iBbndxKk9LKFNkJpxEzELHXMVc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qpo1liyP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B61B8C433F1; Thu, 11 Apr 2024 10:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712832408; bh=rFDZVdrid6QjJXhQJFVnZjcR5UarpY2ipJjian6ZMaU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qpo1liyPOQK+QPp5k0B4qBaGGVD8a+nAv0cHpQjs/t7mCvEJ3FHkfBoj0AgB/UuKw g9nVJLiX3BuASR5FG1Fa4oeV11+ln9BEbdwms4oPuMF6EzN9nVA/f5B6Y14Hxp+Gpp UkDeX5dLVF5EXPdL5McVfmcwHIwLvrMO3frPl8JLT7w6vabHmtehfdUjS0Nxi0C8x9 VFAqUV90Giin6gCVXHnI3LIS0OuePlx/YNudqjPbNR7q+i2JWS8FajTTNuawn1VEDQ 6gvvPJl4xynApjSQhglX5v87ozQegH5TH2lmIoxQOl33al84ley5zOyiZPkVbtY+Yh sdP8WicMbkvgA== Date: Thu, 11 Apr 2024 11:46:44 +0100 From: Lee Jones To: Daniel Hodges Cc: ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, pavel@ucw.cz Subject: Re: [PATCH v2 3/3] leds: trigger: Add documentation for ledtrig-bpf Message-ID: <20240411104644.GD1980182@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, 25 Mar 2024, Daniel Hodges wrote: > Update the documentation for led triggers to include the BPF LED LED throughout please. Same in the previous commit please. > trigger. > > Signed-off-by: Daniel Hodges > --- > Documentation/leds/index.rst | 1 + > Documentation/leds/ledtrig-bpf.rst | 13 +++++++++++++ > 2 files changed, 14 insertions(+) > create mode 100644 Documentation/leds/ledtrig-bpf.rst > > diff --git a/Documentation/leds/index.rst b/Documentation/leds/index.rst > index 3ade16c18328..2af52a19d6bb 100644 > --- a/Documentation/leds/index.rst > +++ b/Documentation/leds/index.rst > @@ -10,6 +10,7 @@ LEDs > leds-class > leds-class-flash > leds-class-multicolor > + ledtrig-bpf > ledtrig-oneshot > ledtrig-transient > ledtrig-usbport > diff --git a/Documentation/leds/ledtrig-bpf.rst b/Documentation/leds/ledtrig-bpf.rst > new file mode 100644 > index 000000000000..391a305f69d1 > --- /dev/null > +++ b/Documentation/leds/ledtrig-bpf.rst > @@ -0,0 +1,13 @@ > +==================== > +BPF LED Trigger > +==================== > + > +This LED trigger is useful for triggering LEDs from the BPF subsystem. This > +trigger is designed to be used in combination with a BPF program that interacts > +with the trigger via a kfunc. The exported kfuncs will have BTF names that > +start with "bpf_ledtrig_". > + > +The trigger can be activated from user space on led class devices as shown > +below:: > + > + echo bpf > trigger > -- > 2.43.2 > -- Lee Jones [李琼斯]