Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 20:01:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 20:01:07 -0500 Received: from svr-ganmtc-appserv-mgmt.ncf.coxexpress.com ([24.136.46.5]:12551 "EHLO svr-ganmtc-appserv-mgmt.ncf.coxexpress.com") by vger.kernel.org with ESMTP id ; Wed, 20 Nov 2002 20:01:05 -0500 Subject: Re: [Coding style question] XXX_register or register_XXX From: Robert Love To: Rusty Lynch Cc: linux-kernel@vger.kernel.org In-Reply-To: <001701c290ef$8417f020$94d40a0a@amr.corp.intel.com> References: <001701c290ef$8417f020$94d40a0a@amr.corp.intel.com> Content-Type: text/plain Organization: Message-Id: <1037840908.1253.3178.camel@phantasy> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 20 Nov 2002 20:08:28 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 801 Lines: 26 On Wed, 2002-11-20 at 18:49, Rusty Lynch wrote: > Is there an accepted standard on naming for registration functions? If have > a foo object that other things can register and unregister with, > should the function names be: I do not think there is an accepted practice here. > int register_foo(&something); > int unregister_foo(&something); I bet this is more common. > int foo_register(&something); > int foo_unregister(&something); But I prefer this - I like there to be a namespace for a given subsystem and for it to be a prefix. Robert Love - 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/