mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Nick Craig-Wood <nick@craig-wood.com>
Cc: David Wagner <daw@cs.berkeley.edu>, linux-kernel@vger.kernel.org
Subject: Re: Checking module parameters
Date: Mon, 19 Jan 2009 14:06:34 +0100	[thread overview]
Message-ID: <49747ADA.1080502@s5r6.in-berlin.de> (raw)
In-Reply-To: <20090119124436.GD1646@craig-wood.com>

Nick Craig-Wood wrote:
> On Mon, Jan 19, 2009 at 11:19:34AM +0100, Stefan Richter wrote:
>> There is also /sys/module/*/parameters/* which can be read and in some
>> cases even be written.
> 
> It doesn't appear to show the force parameter.

You are right.
>From drivers/ata/libata-core.c:

|> static char ata_force_param_buf[PAGE_SIZE] __initdata;
|> /* param_buf is thrown away after initialization, disallow read */
|> module_param_string(force, ata_force_param_buf,
sizeof(ata_force_param_buf), 0);
|> MODULE_PARM_DESC(force, "Force ATA configurations including cable
type, link speed and transfer mode (see
Documentation/kernel-parameters.txt for details)");

The 0 in module_param_string are the sysfs file permissions of libata.force.

And __initdata means that the memory goes away after ata_init() returned.
-- 
Stefan Richter
-=====-==--= ---= =--==
http://arcgraph.de/sr/

  reply	other threads:[~2009-01-19 13:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bVsVO-15X-19@gated-at.bofh.it>
2009-01-19  9:38 ` Nick Craig-Wood
2009-01-19 10:19   ` Stefan Richter
2009-01-19 12:44     ` Nick Craig-Wood
2009-01-19 13:06       ` Stefan Richter [this message]
2009-01-17 22:26 David Wagner
2009-01-17 23:47 ` Alexey Dobriyan
2009-01-18  0:22 ` Robert Hancock
2009-01-18 15:59 ` Yanko Kaneti
2009-01-18 18:58 ` Alan Cox

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=49747ADA.1080502@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=daw@cs.berkeley.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nick@craig-wood.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

all inboxes | Powered by JetHome®