public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 10/11] 2.6.18-mm3 pktcdvd: module parameters
@ 2006-10-03 15:26 Thomas Maier
  0 siblings, 0 replies; only message in thread
From: Thomas Maier @ 2006-10-03 15:26 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org; +Cc: petero2@telia.com, akpm@osdl.org

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

Hello,

this patch exports some module parameters:

pktdev_major                 device major
write_congestion_on          on/off marks of bio write congestion control
write_congestion_off
packet_buffers               number of packet buffers per device

http://people.freenet.de/BalaGi/download/pktcdvd-10-module-params_2.6.18.patch

Signed-off-by: Thomas Maier<balagi@justmail.de>

-Thomas Maier

[-- Attachment #2: pktcdvd-10-module-params_2.6.18.patch --]
[-- Type: application/octet-stream, Size: 1101 bytes --]

diff -urpN 9-packet-buffers/drivers/block/pktcdvd.c 10-module-params/drivers/block/pktcdvd.c
--- 9-packet-buffers/drivers/block/pktcdvd.c	2006-10-03 13:54:54.000000000 +0200
+++ 10-module-params/drivers/block/pktcdvd.c	2006-10-03 13:55:14.000000000 +0200
@@ -86,11 +86,13 @@
 
 #define ZONE(sector, pd) (((sector) + (pd)->offset) & ~((pd)->settings.size - 1))
 
-static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
+/* module parameters */
 static int pktdev_major = 0; /* default: dynamic major number */
 static int write_congestion_on  = PKT_WRITE_CONGESTION_ON;
 static int write_congestion_off = PKT_WRITE_CONGESTION_OFF;
 static int packet_buffers = PKT_BUFFERS_DEFAULT;
+
+static struct pktcdvd_device *pkt_devs[MAX_WRITERS];
 static struct mutex ctl_mutex;	/* Serialize open/close/setup/teardown */
 static mempool_t *psd_pool;
 
@@ -3277,3 +3279,8 @@ MODULE_LICENSE("GPL");
 
 module_init(pkt_init);
 module_exit(pkt_exit);
+
+module_param(pktdev_major, int, 0);
+module_param(write_congestion_on, int, 0);
+module_param(write_congestion_off, int, 0);
+module_param(packet_buffers, int, 0);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-03 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 15:26 [PATCH 10/11] 2.6.18-mm3 pktcdvd: module parameters Thomas Maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox