lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 5 Sep 2010 14:20:20 -0700
From:	Randy Dunlap <rdunlap@...otime.net>
To:	runcoderen <runcoderzhcn@...il.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: ldd scull_load question

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 ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ