Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7624648imu; Tue, 22 Jan 2019 08:54:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5jmnxoyWNfAnw2IgW7n4PgCgBy0frJwvGn+5nULbgWiAZ4r6chn5cc39QblbE87FKoRtdX X-Received: by 2002:a65:610d:: with SMTP id z13mr33253977pgu.427.1548176075165; Tue, 22 Jan 2019 08:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548176075; cv=none; d=google.com; s=arc-20160816; b=C++v7MsJ1iBbC0ttSuBEkUkaLaDwNiDgndCJOuC358sf/UJhv67oJBk7rx6jvL6+RY DWqS8z8CSxlpzKw4E0+06NKEypMb4NjDp9OGk9eroobpZ0yy7ActquNOX4pQZV1/AVha SaH6srCwXEFRazWB2ZgxXSkW9Jn0czLaZotE85H19mSQKC1Nj7lIzNS9mK14x0FdyCky AU2LJNsl3vSfRPNigO7oEubgppfIoOeNabiVUHlMvJoPFRx8+Amrttt3ZEIIGcQp+KGF yMgGLIYnH5SOWTax80CW4vmlD4KktjwcDm3kpgpN5P+gXE12Ec2A/OLeCdzDtvndE5+t +HYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=lcquk7P9RYTtB49NXyYLu5SF++ESl8Lz8Zlf08rA2OQ=; b=wXSR4q9upFaDPlTHznXNCcI1t3wfxkSbBAOnQA0nx1f1Do2On0aO3f1nyrGRUpsJAC 5Qk/aagbBbCEpJRrQodxa+JsnXXcQHpQdPeBkZV3lSWMGUh5opoKEMC1BXVg643M7f+7 kyPgPv6nLSw0cwHtdWmjvUtP/umxclcNrbsgzmR/wQCksLrGJ7NaHdGZrp/7z7Apb2FK /hTPNVzD0SREnHTnJ+OEO2ZcMbj5sWmnVkyKg9ugViqfgFe6QOYwDQSlQo1FTJzkNBcW 28oZ75nZRMVbn2hRev2FSJ7hsc9qK4I9oIXHpMbJ64s8nFVdFjYnnJYbxnrIdqtSHZ5j jQqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si15844064pfh.163.2019.01.22.08.54.19; Tue, 22 Jan 2019 08:54:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729480AbfAVQwI (ORCPT + 99 others); Tue, 22 Jan 2019 11:52:08 -0500 Received: from mail-oi1-f182.google.com ([209.85.167.182]:45501 "EHLO mail-oi1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729215AbfAVQwI (ORCPT ); Tue, 22 Jan 2019 11:52:08 -0500 Received: by mail-oi1-f182.google.com with SMTP id y1so17923287oie.12; Tue, 22 Jan 2019 08:52:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lcquk7P9RYTtB49NXyYLu5SF++ESl8Lz8Zlf08rA2OQ=; b=L8xu2ZElxIWQ93Kcjbi3KEAt7c0OM7XhPehMSaWSu0ksT6lON+zNlR3l167CFoB4P6 RMxNh25Oxw6Pi2xFugAD5kfsPC5oBueAKwfvKDXXPL3JbyBEClCO7xw0NYQHRkPT1hRT YiqS3VM6pu8dMyn0vmTObYIPklMVY2Dzld6Gklp501VlgeNHMqz1AMrUOp+BxcfJN2f5 V6ykRKdTkCA8zjKY7HPpnHvaPAJrg7yWmmYQtrZj5Sy5IyYGEA5hjW8lKSDdmwwq0/f5 xcs9K4bYEPp/ap3R/05FeNvLvgnDkwpFJoZPiGTqMyCEdDRJCvjT10LqnHFmvzu3/gEn CfJg== X-Gm-Message-State: AJcUukcm6YoneR96AN8rpU14kH96l5MdKA5409ByIhS0z4YvUJQJegDF 8yWCAE9H4mPeHkJ4EYXF+Fv6CGkL0JdockAU6K0= X-Received: by 2002:aca:195:: with SMTP id 143mr8334859oib.322.1548175927484; Tue, 22 Jan 2019 08:52:07 -0800 (PST) MIME-Version: 1.0 References: <20190116175804.30196-1-keith.busch@intel.com> <20190116175804.30196-6-keith.busch@intel.com> <20190119090129.GC10836@kroah.com> <20190122163650.GD1477@localhost.localdomain> In-Reply-To: <20190122163650.GD1477@localhost.localdomain> From: "Rafael J. Wysocki" Date: Tue, 22 Jan 2019 17:51:56 +0100 Message-ID: Subject: Re: [PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes To: Keith Busch Cc: "Rafael J. Wysocki" , Greg Kroah-Hartman , Dan Williams , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Dave Hansen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 5:37 PM Keith Busch wrote: > > On Sun, Jan 20, 2019 at 05:16:05PM +0100, Rafael J. Wysocki wrote: > > On Sat, Jan 19, 2019 at 10:01 AM Greg Kroah-Hartman > > wrote: > > > > > > If you do a subdirectory "correctly" (i.e. a name for an attribute > > > group), that's fine. > > > > Yes, that's what I was thinking about: along the lines of the "power" > > group under device kobjects. > > We can't append symlinks to an attribute group, though. That's right, unfortunately. > I'd need to create a lot of struct devices just to get the desired directory hiearchy. No, you don't need to do that. Kobjects can be added without registering a struct device for each of them kind of along the lines of what cpufreq does for its policy objects etc. See cpufreq_policy_alloc() and cpufreq_core_init() for examples. > And then each of those "devices" will have their own "power" group, which > really doesn't make any sense for what we're trying to show. Is that > really the right way to do this, or something else I'm missing? Above?