Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751114AbWA2TFi (ORCPT ); Sun, 29 Jan 2006 14:05:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751116AbWA2TFi (ORCPT ); Sun, 29 Jan 2006 14:05:38 -0500 Received: from dsl093-040-174.pdx1.dsl.speakeasy.net ([66.93.40.174]:64648 "EHLO aria.kroah.org") by vger.kernel.org with ESMTP id S1751114AbWA2TFi (ORCPT ); Sun, 29 Jan 2006 14:05:38 -0500 Date: Sun, 29 Jan 2006 11:05:39 -0800 From: Greg KH To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, vserver@list.linux-vserver.org, Herbert Poetzl , "Serge E. Hallyn" , Alan Cox , Dave Hansen , Arjan van de Ven , Suleiman Souhlal , Hubertus Franke , Cedric Le Goater , Kyle Moffett Subject: Re: [PATCH 1/5] pid: Implement task references. Message-ID: <20060129190539.GA26794@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 534 Lines: 20 On Sun, Jan 29, 2006 at 12:22:34AM -0700, Eric W. Biederman wrote: > +struct task_ref > +{ > + atomic_t count; Please use a struct kref here, instead of your own atomic_t, as that's why it is in the kernel :) > + enum pid_type type; > + struct task_struct *task; > +}; thanks, greg k-h - 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/