public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: "Andrey Kamchatnikov" <andrey.kamchatnikov@tec-venture.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Problem: one driver and 4 instances with different parameters
Date: 19 Sep 2007 10:26:54 +0200	[thread overview]
Message-ID: <p73abrjvz5d.fsf@bingen.suse.de> (raw)
In-Reply-To: <016a01c7fa89$ff51e850$b4fefea9@andrey>

"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) 

-Andi


  parent reply	other threads:[~2007-09-19  8:27 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 [this message]
2007-09-19 15:56   ` Randy Dunlap
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=p73abrjvz5d.fsf@bingen.suse.de \
    --to=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