Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6209169pxv; Thu, 29 Jul 2021 08:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlSmthm/42kugtt2Rm9h2+KTOeReg6G9J2gFbeUQkcZ3LLVaRZpFeqRz/DO/lp+L/yGK5h X-Received: by 2002:aa7:d4da:: with SMTP id t26mr6792915edr.42.1627574143569; Thu, 29 Jul 2021 08:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627574143; cv=none; d=google.com; s=arc-20160816; b=xbGZYsPnvNKsZnUqvnR31zQQkeX7bbK+NpHvt3VPGqjfixc9OVbMjfHNU6cHUxHPdN 5ZUTlKsbYdB8hodE0QfCH0fqn17rJ/1rCbCE6HTES4CSqy+a6YuNi4koGJWflYpMavp0 DYGWI0WtiLAQ0n33+WZxTo4qmsDsnP60sXzBKLsTGtscXtrFchWmQWrg6FzNgZRlbGC1 lV84+mTiWeQNu0yw6vnDttKz9lrGtBvrjsNjCBZEECxhxJrEiGqzfncCIK+wXM0dnv+g VMgOhmv3l08d1dWdNEQdRvhk0Co7SGwY3mweEPOvbv2f+Z22yPVzs3Cp/2LZ0k5RYNTo TWPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5ggudXBKBG+mZkoKUCRIvn4jywWI6nv9ReIVf6rwOFM=; b=CYgYQD8aB8HecpUQQ2r3RzMu2uvyHBwZ9HilkeE9rlROHaxrKvtJ54uKo4u8qZBB9j /4/FFBeUsNT4rISRErI8cNKK+F9QOz1IFbxeaK9TtTUOUBGXxQcLh/TGtgOIo/9NiMuM pLsNOT+0UhCEf7yKO0cs2WjmdNI2d6Dnuh+ie87udSEqjAF5g8Xeh18mLP0KpOAyZFVQ rx3KcFX8q2x9NnszDG8EWQftmAWYkxyVSfQ2XmBbidizKSTX7zeyopK7KtregKVNFvYO nb3BsWA5hPh8PSI0vdCeHyrCcrHRxapVXsStTWPu9kzZm1rl9tcedPAHAezFfzodAMCz HFfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tv39Jsgn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si2514290ejk.77.2021.07.29.08.55.19; Thu, 29 Jul 2021 08:55:43 -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=@gmail.com header.s=20161025 header.b=tv39Jsgn; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238002AbhG2PwO (ORCPT + 99 others); Thu, 29 Jul 2021 11:52:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbhG2PwM (ORCPT ); Thu, 29 Jul 2021 11:52:12 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36BE7C061765; Thu, 29 Jul 2021 08:52:08 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id v8-20020a0568301bc8b02904d5b4e5ca3aso6277573ota.13; Thu, 29 Jul 2021 08:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5ggudXBKBG+mZkoKUCRIvn4jywWI6nv9ReIVf6rwOFM=; b=tv39JsgncGFBeHS30VsHiX/zWucJ6YM9HZuj/+LXC6ReWc5/57+JQvOiaC/WRWwcCY OdBQ6hRg7LJUmCj+MLPZrcpL1laZ0MTDDtxXVt8RAr+y8iYAqzxh5rLELQqgswJroPLe Efxzr/RxUHnnG5SHgMZ0IfxCSr22FPuiFP9yP3XZS0VmG1L75qrgvvDkOR4ykxamjvSc lkAYl6PIhpb6iH/ZtH48IEl2Td6nGljG1VlD2cjHGUDSiWhBtM+rKyXJ4jQhq93XeA6t Tb5T8EFt5FZes55EgWaKSKLFGesHiQxabS2fKwsD7UWNhJWGXyo4qjB9lUb8KsrDPJVq L5MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5ggudXBKBG+mZkoKUCRIvn4jywWI6nv9ReIVf6rwOFM=; b=QH0XesM+V6hCKlu7XD8514PaUA/ThZnE4T5G+HLV/ppRlVgfmELU2XRXefkmcK7oh5 7me30m3Po9ih1VRyBzYK4VFykgRW5e5Wv1+s2kgKLDte4JmDrENnz9zrLNPuaiDRAwRT gZ1BYKpgSw7TofczJ6bvr2yGJzdJdW0UR/H0mug8lSVtLE0GSgLtj3Km655cpsgMg/lE yUuXig3PLdgZ8+nagThOSYJzSf4Uzid8VqMDFTNfDaX2o1eV5ZoN7KstcMP/qJUe6c68 n+d4hyjcSMXfZJFxqh/wZhnKQIu5TxZKAdmeG7TpG4gYTJGdo3YPO9EiEmI5+6TZWEdC VPwA== X-Gm-Message-State: AOAM5307B0OIudvzdQ/9Lh41oyoVVXnDvqsje6OfoH7sw/GmzuLVe+rF FAYbFddyqD/XqKwVyEWt8TtImJfjGvgfdVxz X-Received: by 2002:a05:6830:1f3b:: with SMTP id e27mr3873661oth.311.1627573927585; Thu, 29 Jul 2021 08:52:07 -0700 (PDT) Received: from ian.penurio.us ([47.184.51.90]) by smtp.gmail.com with ESMTPSA id b14sm645195oic.58.2021.07.29.08.52.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Jul 2021 08:52:06 -0700 (PDT) Subject: Re: [RFC PATCH 1/8] docs: Add block device LED trigger documentation To: =?UTF-8?Q?Valdis_Kl=c4=93tnieks?= Cc: linux-block@vger.kernel.org, linux-leds@vger.kernel.org, axboe@kernel.dk, pavel@ucw.cz, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org References: <20210729015344.3366750-1-arequipeno@gmail.com> <20210729015344.3366750-2-arequipeno@gmail.com> <108629.1627528155@turing-police> From: Ian Pilcher Message-ID: Date: Thu, 29 Jul 2021 10:52:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <108629.1627528155@turing-police> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/28/21 10:09 PM, Valdis Klētnieks wrote: >> + # cat /sys/class/block/led_trigger_list >> + baz: 0 >> + bar: 0 >> + foo: 0 > > This looks like an abuse of the "one entry one value" rule for sysfs. > Perhaps this should be a directory /sys/class/block/defined_triggers/ > and separate files under that for foo, bar, and baz? That would probably > make reference counting a lot easier as well.... Indeed it is. Funny that you should mention using a subdirectory. I originally wanted to put all of the trigger-related stuff into /sys/class/block/led_triggers/, but I couldn't find any API to create a subdirectory for *class* attributes (only for device attributes), nor do I see any such subdirectories on my system. # find /sys/class -type d | egrep '^/sys/class/[^/]+/' (no output) Is is possible to create subdirectories for class attributes? -- ======================================================================== In Soviet Russia, Google searches you! ========================================================================