From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758771Ab0ERUO3 (ORCPT ); Tue, 18 May 2010 16:14:29 -0400 Received: from kroah.org ([198.145.64.141]:52587 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758170Ab0ERUOR (ORCPT ); Tue, 18 May 2010 16:14:17 -0400 Date: Tue, 18 May 2010 13:08:23 -0700 From: Greg KH To: Lin Ming Cc: Peter Zijlstra , Ingo Molnar , Corey Ashford , Frederic Weisbecker , Paul Mundt , "eranian@gmail.com" , "Gary.Mohr@Bull.com" , "arjan@linux.intel.com" , "Zhang, Yanmin" , Paul Mackerras , "David S. Miller" , Russell King , Arnaldo Carvalho de Melo , Will Deacon , Maynard Johnson , Carl Love , Kay Sievers , lkml Subject: Re: [RFC][PATCH v2 08/11] sysfs: introduce new interface sysfs_get_kobject Message-ID: <20100518200823.GC20223@kroah.com> References: <1274233723.3036.87.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1274233723.3036.87.camel@localhost> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2010 at 01:48:43AM +0000, Lin Ming wrote: > Need this interface in the later sysfs pmu lookup. > > struct kobject *sysfs_get_kobject(struct file *file); > Return the relative kobject of the sysfs file. Ick, no. Why would you ever have the file, yet not have the kobject already? Something is really wrong if this is needed. Or strange. Or maybe both :) thanks, greg k-h