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]
Message-Id: <20100904174308.409c070e.rdunlap@xenotime.net>
Date:	Sat, 4 Sep 2010 17:43:08 -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 08:35:14 +0800 runcoderen wrote:

> hi all:
> I am reading ldd(3rd).
> when I read the scull_load part.
> I can't understand some special sentences in the scripts as follows:
> 
> /sbin/insmod ./$module.ko $* || exit 1
> 
> why we add $* and || exit 1 after /sbin/insmod ./$module.ko?
> 
> can anyone help me to understand?

"$*" passes all parameters of the script to the module as module parameters.

"insmod module.ko || exit 1"

means "if insmod is successful (no error), then the command is finished,
otherwise exit with an error code of 1."

Does that help?

---
~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