Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Nov 2002 19:38:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Nov 2002 19:38:57 -0500 Received: from [155.223.251.1] ([155.223.251.1]:48035 "HELO gatekeeper") by vger.kernel.org with SMTP id ; Wed, 20 Nov 2002 19:38:56 -0500 From: "Halil Demirezen" To: "Rusty Lynch" CC: linux-kernel@vger.kernel.org Subject: Re: [Coding style question] XXX_register or register_XXX Date: Thu, 21 Nov 2002 03:02:06 +0800 Message-Id: <20021121030206.M48633@bilmuh.ege.edu.tr> In-Reply-To: <001701c290ef$8417f020$94d40a0a@amr.corp.intel.com> References: <001701c290ef$8417f020$94d40a0a@amr.corp.intel.com> X-Mailer: Open WebMail 1.64 20020415 X-OriginatingIP: 217.131.251.13 (nitrium) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-9 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 23 > 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: > int foo_register(&something); > int foo_unregister(&something); really, that would make the entire kernel code a little simplier to understand. On the same way, we can say why there is not an accepted standard on naming lock functions, such as spinlock, rwlock and so on.. That would be more efficient to understand the code... However, where is flexibility? -hd - 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/