public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Thomas Maier" <balagi@justmail.de>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: "petero2@telia.com" <petero2@telia.com>, "akpm@osdl.org" <akpm@osdl.org>
Subject: [PATCH 10/11] 2.6.18-mm3 pktcdvd: module parameters
Date: Tue, 03 Oct 2006 17:26:50 +0200	[thread overview]
Message-ID: <op.tguqi00riudtyh@master> (raw)

[-- 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);

                 reply	other threads:[~2006-10-03 15:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=op.tguqi00riudtyh@master \
    --to=balagi@justmail.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petero2@telia.com \
    /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