Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63EDACD1284 for ; Tue, 2 Apr 2024 16:00:44 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.97.1) (envelope-from ) id 1rrgY4-0000000081P-2ndn; Tue, 02 Apr 2024 11:59:44 -0400 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1rrgY3-0000000081C-139M for kernelnewbies@kernelnewbies.org; Tue, 02 Apr 2024 11:59:43 -0400 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6e677ec9508so1322790a34.1 for ; Tue, 02 Apr 2024 08:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712073574; x=1712678374; darn=kernelnewbies.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=66UDs+7VCTCca26QqnKEVwsENdCa09Uxj3TM5pZo/tA=; b=SjrBwrmkKRdfHbV7x3q4SDUyeGKJmN1gke9iUC4iQ4x3O+fJLqKNCpSc7VSE064sR2 k3dXB8FEvhn1CRZRKHo4X0C5LpqDpDHPj3v3F9q5l9R3QIE6d39OK6a0zvvoxrHPYbd/ 5Nz09S317vid8hRPPUrVMtZHVc7Phu+fmGJEFBksQ0c49Qn/6a/T8xei0dvwxjenlVul VYkn+d78PiXQ8wTh0LpuiqfnY6xnoGSi/6zNgpCb8Z496SHfEW4BtnBed0ghjdHQ4+xy OEKgRYpHEi6o/e3hvYF52GLnIM2MkNZsjJvWX7dpDLkvUtkWM+RxwqT4m3921kKEGBRQ ll7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712073574; x=1712678374; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=66UDs+7VCTCca26QqnKEVwsENdCa09Uxj3TM5pZo/tA=; b=qAyXj1PKp4ih3/I4W30oG8sWQW0HCburfP2jQE9GVnCeG6zK+aKZpBYI3OhSlcOnjj il6G/ERLSskXRn4uV9kGskakRRIPm93dwgZrU23K9QGJT0+hKcTrsYpH9JczzUjy24jS AgMEHgSp6V7MRbkQfeWE6flKpjrCNQrov900lWMDWowwJf5GVAeOuOBZvkp3tnwuJngL 5DXVbF1dEGJhy4yNr8NTvygOCD1cWpnoX5T7ppZt5gfLKfPnhjBEWPGeBR5qvjVfGR+e Y/GqchQOtqqsQMU9UHSR7jmBq6fb4CZbvqmgXfetNgnaa6RT4tXcdmVjeskxyXOhoygu UJYg== X-Gm-Message-State: AOJu0Yw/m/o425g76/73wW/vbC87AMSnk6SpSAlDEeZi/k9PUXH2OQYe lZFmvIVtXnKXj1UZlHDzBUg87sipfyuwBFShPTexVfjqrNBa+ZGPpTH5IQ6k X-Google-Smtp-Source: AGHT+IGJyZIn3NVsBbMM7J3vbZhYRD62QiJsxLzbdDdykfd75qee1LWrpQXHap7vVdkDYCJ0kHC/3Q== X-Received: by 2002:a05:6808:2020:b0:3c3:d729:1d56 with SMTP id q32-20020a056808202000b003c3d7291d56mr16680154oiw.0.1712073573991; Tue, 02 Apr 2024 08:59:33 -0700 (PDT) Received: from [172.31.250.1] (192-063-109-134.res.spectrum.com. [192.63.109.134]) by smtp.gmail.com with ESMTPSA id k17-20020a544411000000b003c3b3e8a20dsm2132272oiw.20.2024.04.02.08.59.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Apr 2024 08:59:33 -0700 (PDT) Message-ID: <54eeeef7-98e8-4966-a1db-30fb37177eed@gmail.com> Date: Tue, 2 Apr 2024 10:59:32 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: kernelnewbies@kernelnewbies.org From: Ian Pilcher Subject: Seeking help addressing maintainer objections X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org I have been maintaining an out of tree module for several years, and I'd like to take (yet another) run at getting it accepted. In order to do so, however, I need some advice/help to meet the requirements of the relevant subsystem maintainer. The module in question is an LED trigger for block devices. It allows the system administrator to create relationships between LEDS and block devices, so that activity (reads, writes, etc.) on those devices will cause the LEDs to blink. You can see the latest version (for 6.8 kernels) here[1]. The trigger is very configurable. It supports many-to-many relationships between block devices and LEDS, so a block device can be associated with more than one LED (potentially for different types of activity) and an LED can be associated with one or more block devices. These many-to-many relationships are part of the problem. LED triggers are traditionally configured with sysfs, and sysfs attributes don't really work all that well for configuring a list of things (such as the block devices associated with an LED). In order to avoid a read/modify/write cycle when adding or removing a device/LED association, and adhere to the one value per file guideline, the trigger provides write-only attributes for adding and removing associations. (Existing associations are represented as symbolic links.) The sysfs interface is documented here[2]. The maintainer of the LEDs subsystem considers this interface to be "crazy", but he has not suggested any alternative.[3] (I have not been able to find any existing example of configuring many-to-many relationships via sysfs.) The second problem is the use of device file paths (including symbolic link resolution), rather than kernel names, when creating associations. This limitation exists because the block subsystem does not provide an API to open a block device by its kernel name; only device file paths and device numbers (major & minor) are supported. Adding such an API to the block subsystem has been proposed many times over the years, and it has been denied (often vehemently) on every occasion. I believe it's accurate to say that the maintainers of the block subsystem feel that device file paths (and to a lesser extent device numbers) are *the* correct way to refer to block devices, and they are not willing to add APIs that use kernel names. Does anyone have any suggestions on how I can move forward with this? Thanks! [1] https://github.com/ipilcher/ledtrig-blkdev/blob/pre-6.9/drivers/leds/trigger/ledtrig-blkdev.c [2] https://github.com/ipilcher/ledtrig-blkdev/blob/pre-6.9/Documentation/leds/ledtrig-blkdev.rst [3] https://lore.kernel.org/lkml/a7ff3338-3d5e-4402-aaba-16e740f4ed5b@gmail.com/T/#mbcf916e3582ae237a08390f5405822bd85f02c89 -- ======================================================================== If your user interface is intuitive in retrospect ... it isn't intuitive ======================================================================== _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies