Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758231AbXJ2SMs (ORCPT ); Mon, 29 Oct 2007 14:12:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759731AbXJ2SMg (ORCPT ); Mon, 29 Oct 2007 14:12:36 -0400 Received: from hancock.steeleye.com ([71.30.118.248]:40613 "EHLO hancock.sc.steeleye.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755178AbXJ2SMf (ORCPT ); Mon, 29 Oct 2007 14:12:35 -0400 Subject: Re: [PATCH] sysfs: add filter function to groups From: James Bottomley To: Stefan Richter Cc: Kay Sievers , Greg KH , linux-scsi , linux-kernel In-Reply-To: <47261F50.3050901@s5r6.in-berlin.de> References: <1193671019.3383.13.camel@localhost.localdomain> <1193676852.2655.21.camel@lov.site> <1193677071.3383.56.camel@localhost.localdomain> <47261F50.3050901@s5r6.in-berlin.de> Content-Type: text/plain Date: Mon, 29 Oct 2007 13:12:33 -0500 Message-Id: <1193681553.3383.102.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 927 Lines: 31 On Mon, 2007-10-29 at 18:58 +0100, Stefan Richter wrote: > James Bottomley wrote: > >> > struct attribute_group { > >> > const char *name; > >> > + int (*filter_show)(struct kobject *, int); > > > Actually, it returns a true/false value indicating whether the given > > attribute should be displayed. > > How about this: > > int (*is_visible)(...); > or > bool (*shall_be_shown)(...); > or > bool (*should_be_displayed)(...); > > or whatever, so that it indicates that this function merely answers a > question, but doesn't filter nor show anything. Actually, as long as it's descriptive, I really don't care about the name. Can we all agree on "is_visible"? James - 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/