From: Balaji Rao Subject: Re: [PATCH] Mark kobjects as unitialized Date: Thu, 6 Mar 2008 23:20:50 +0530 Message-ID: <200803062320.50296.balajirrao@gmail.com> References: <200803062223.18857.balajirrao@gmail.com> <20080306170514.GA13839@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org To: Greg KH Return-path: In-Reply-To: <20080306170514.GA13839@suse.de> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On Thursday 06 March 2008 10:35:14 pm Greg KH wrote: > Where exactly in the code does that happen? kobjects should not be > "reused" as that implies that they are static, and not dynamically > allocated, right? > > Which kobject is this? Yes, its static. Here's the code from virt/kvm_main.c:1269 static struct sys_device kvm_sysdev = { .id = 0, .cls = &kvm_sysdev_class, }; this sys_device is being registered/unregistered when kvm-intel is loaded/unloaded. > > Ugh, is this the sys_device stuff? I hate that code... > Yes it is! But, why do you hate it ? -- regards, balaji rao 3rd year, Dept. of Mechanical Engineering, National Institute of Technology, Karnataka ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/