Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262298AbVAJPvf (ORCPT ); Mon, 10 Jan 2005 10:51:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262302AbVAJPvd (ORCPT ); Mon, 10 Jan 2005 10:51:33 -0500 Received: from e3.ny.us.ibm.com ([32.97.182.143]:63648 "EHLO e3.ny.us.ibm.com") by vger.kernel.org with ESMTP id S262298AbVAJPvV (ORCPT ); Mon, 10 Jan 2005 10:51:21 -0500 Subject: Re: [RFC/PATCH] add support for sysdev class attributes From: Nathan Lynch To: Greg KH Cc: lkml In-Reply-To: <20050108050729.GA7587@kroah.com> References: <1105136891.13391.20.camel@pants.austin.ibm.com> <20050108050729.GA7587@kroah.com> Content-Type: text/plain Date: Mon, 10 Jan 2005 09:58:03 -0600 Message-Id: <1105372684.27280.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.1.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 33 On Fri, 2005-01-07 at 21:07 -0800, Greg KH wrote: > On Fri, Jan 07, 2005 at 04:28:12PM -0600, Nathan Lynch wrote: > > @@ -88,6 +123,12 @@ int sysdev_class_register(struct sysdev_ > > INIT_LIST_HEAD(&cls->drivers); > > cls->kset.subsys = &system_subsys; > > kset_set_kset_s(cls, system_subsys); > > + > > + /* I'm not going to claim to understand this; see > > + * fs/sysfs/file::check_perm for how sysfs_ops are selected > > + */ > > + cls->kset.kobj.ktype = &sysdev_class_ktype; > > + > > I think you need to understand this, and then submit a patch without > such a comment :) > > And probably without such code, as I don't think you need to do that. Sure, now I'm not sure how I convinced myself that bit was needed. Things work fine without it. Before I repatch, does sysdev_class_ktype need a release function? Thanks, Nathan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/