Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751913AbWJIWwz (ORCPT ); Mon, 9 Oct 2006 18:52:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751912AbWJIWwy (ORCPT ); Mon, 9 Oct 2006 18:52:54 -0400 Received: from pne-smtpout3-sn1.fre.skanova.net ([81.228.11.120]:23793 "EHLO pne-smtpout3-sn1.fre.skanova.net") by vger.kernel.org with ESMTP id S1751911AbWJIWwx (ORCPT ); Mon, 9 Oct 2006 18:52:53 -0400 Message-ID: <452AD2B5.3040507@gmail.com> Date: Tue, 10 Oct 2006 01:52:37 +0300 From: Anssi Hannula User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Liyu CC: greg , Randy Dunlap , Dmitry Torokhov , LKML , linux-usb-devel Subject: Re: [linux-usb-devel] [PATCH] usb/hid: The HID Simple Driver Interface 0.3.2 (core) References: <200609291624123283320@gmail.com> <20060929095913.f1b6f79d.rdunlap@xenotime.net> <45286B85.90402@gmail.com> <452948AD.8030600@gmail.com> <4529C38A.2000708@gmail.com> In-Reply-To: <4529C38A.2000708@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 38 Liyu wrote: > Anssi Hannula wrote: >> One possibility is to do that with symbol_request() and friends. That >> would not be pretty though, imho. >> >> DVB subsystem uses that currently to load frontend modules dynamically, >> see dvb_attach() and dvb_frontend_detach() in >> drivers/media/dvb/dvb-core/dvbdev.h and >> drivers/media/dvb/dvb-core/dvb_frontend.c. >> >> > This means also can load module dynamically. In apparently, I think it > have two weaknesses: > > 1. It require module have one exported symbol at least. True. > 2. We must handle life cycle of module by myself. We need to handle reference count, yes. > Is it right? > > Goodluck > > -Liyu > -- Anssi Hannula - 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/