public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: "Andrey Kamchatnikov" <andrey.kamchatnikov@tec-venture.de>,
	<linux-kernel@vger.kernel.org>
Subject: Re: Problem: one driver and 4 instances with different parameters
Date: Wed, 19 Sep 2007 08:56:51 -0700	[thread overview]
Message-ID: <20070919085651.1d8f8359.randy.dunlap@oracle.com> (raw)
In-Reply-To: <p73abrjvz5d.fsf@bingen.suse.de>

On 19 Sep 2007 10:26:54 +0200 Andi Kleen wrote:

> "Andrey Kamchatnikov" <andrey.kamchatnikov@tec-venture.de> writes:
> 
> > I have one driver, but I need to run 4 instances of it (I run insmod
> > with different parameters) .
> > 
> > But when I try to install the second driver I've got an error, that
> > driver with this name exists.
> 
> The standard trick to do that is to copy the module binary to four different
> names (the module name is not encoded in the binary)
> 
> But it would be better to just fix the driver to allow this
> with a single instance with some other run time configuration
> mechanism and not use module parameters (which 
> are generally somewhat deprecated anyways) 
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Eh?  Do you mean for IO,mem,irq type settings?  If so, then yes, ok.
Otherwise please explain what you mean...

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2007-09-19 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-19  6:54 Problem: one driver and 4 instances with different parameters Andrey Kamchatnikov
2007-09-19  7:40 ` Nobin Mathew
2007-09-19  8:26 ` Andi Kleen
2007-09-19 15:56   ` Randy Dunlap [this message]
2007-09-19  8:52 ` Andreas Herrmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070919085651.1d8f8359.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=andi@firstfloor.org \
    --cc=andrey.kamchatnikov@tec-venture.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox