lkml.org 
[lkml]   [2004]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Dummy network device
On Tue, 09 Mar 2004 15:11:48 -0800 Rick Knight wrote:

| > Hello,
| >
| > After I upgraded to 2.6.3 from 2.4.20 I discovered that I can only get
| > 1 dummy device. I need to be able to load 3 dummy network devices.
| > Scouring the kernel archives, it looks like this can be accomplished
| > through MODULE_PARAMS, but I can find no information on the
| > module_params are or how to use them. I have dummy built as a module
| > and it does load at startup as dummy0. How do I get dummy1 and dummy2?
| >
| > In answering this message, please CC me.
| >
| > Thanks for your help,
| > Rick Knight
| > (rick@rlknight.com)
|
|
| Never mind,
|
| I found the answer. From the archive. Decided to look at dummy.c and
| numdummies=1, changed it to numdummies=3 and rebuilt that module. Works
| like a charm.
|
| Question/Suggestion, couldn't this be made an option at configuration?
| Kind of like number_of_ptys=256.

It's supposed to be changeable at module load time, without
rebuilding it. Try this e.g.:

modprobe dummy numdummies=4

--
~Randy
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:2.070 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site