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] [day] [month] [year] [list]
Message-ID: <CAM_iQpX0sM=8O911nVba_JZ0VVJ_sxTquFfixYjgkJ7TAJFmcw@mail.gmail.com>
Date:	Sun, 13 Nov 2011 23:10:09 +0800
From:	Américo Wang <xiyou.wangcong@...il.com>
To:	Xin Tong <xerox.time.tech@...il.com>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: module_init in linux kernel

On Sun, Nov 13, 2011 at 8:11 PM, Xin Tong <xerox.time.tech@...il.com> wrote:
> When one is writing a module, are module_init and module_exit
> mandatory. I understand that module_init and module_exit are just
> macro which place functions in special .text area. Is there is not
> module_init or module_exit defined, is there any default to take over
> or the kernel will panic when the module is loaded.
>

It is valid to write a kernel module without module_init().
--
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