mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: runcoderen <runcoderzhcn@gmail.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: ldd scull_load question
Date: Sun, 5 Sep 2010 14:20:20 -0700	[thread overview]
Message-ID: <20100905142020.5db3997d.rdunlap@xenotime.net> (raw)
In-Reply-To: <1283648515.1741.8.camel@bencharluo-laptop>

On Sun, 05 Sep 2010 09:01:55 +0800 runcoderen wrote:

> yes, you do!
> 
> there is another question confused me.
> I have seem the command in the scull.c:
> int scull_major = SCULL_MAJOR;and so on.
> 
> module_param(scull_major, int, S_IRUGO); and so on.
> 
> if we don't do "./scull_load scull_major" command.
> 
> we just use "./scull_load"
> 
> it will make scull_major = SCULL_MAJOR default?

Yes.  scull_major is initialized to SCULL_MAJOR every time
that the module is loaded.
The module_param() allows someone to change the value of
scull_major.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2010-09-05 21:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30  9:20 [RFC 04/22] tcm: Add v4 base data structures and struct target_core_fabric_ops Nicholas A. Bellinger
2010-09-02  5:56 ` Konrad Rzeszutek Wilk
2010-09-02 19:19   ` Nicholas A. Bellinger
2010-09-04 23:53     ` Nicholas A. Bellinger
2010-09-05  0:35       ` ldd scull_load question runcoderen
2010-09-05  0:43         ` Randy Dunlap
2010-09-05  1:01           ` runcoderen
2010-09-05 21:20             ` Randy Dunlap [this message]
2010-09-05  3:21         ` Adam Jiang
2010-09-07 20:56       ` [RFC 04/22] tcm: Add v4 base data structures and struct target_core_fabric_ops Konrad Rzeszutek Wilk
2010-09-08  1:44         ` Nicholas A. Bellinger

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=20100905142020.5db3997d.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=runcoderzhcn@gmail.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®