Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759484AbXHBSsv (ORCPT ); Thu, 2 Aug 2007 14:48:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753664AbXHBSso (ORCPT ); Thu, 2 Aug 2007 14:48:44 -0400 Received: from mail-gw2.sa.eol.hu ([212.108.200.109]:57503 "EHLO mail-gw2.sa.eol.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753232AbXHBSsn (ORCPT ); Thu, 2 Aug 2007 14:48:43 -0400 To: akpm@linux-foundation.org CC: miklos@szeredi.hu, linux-kernel@vger.kernel.org, linux-mm@kvack.org, torvalds@linux-foundation.org In-reply-to: <20070802113626.634a6bd9.akpm@linux-foundation.org> (message from Andrew Morton on Thu, 2 Aug 2007 11:36:26 -0700) Subject: Re: [PATCH] type safe allocator References: <20070802113626.634a6bd9.akpm@linux-foundation.org> Message-Id: From: Miklos Szeredi Date: Thu, 02 Aug 2007 20:48:26 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 757 Lines: 25 > > The linux kernel doesn't have a type safe object allocator a-la new() > > in C++ or g_new() in glib. > > > > Introduce two helpers for this purpose: > > > > alloc_struct(type, gfp_flags); > > > > zalloc_struct(type, gfp_flags); > > whimper. > > On a practical note, I'm still buried in convert-to-kzalloc patches, and > your proposal invites a two-year stream of 10,000 convert-to-alloc_struct > patches. > > So if this goes in No, I gave up. It seems nobody likes the idea except me :( Miklos - 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/