lkml.org 
[lkml]   [2011]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: module_init in linux kernel
From
On Sun, Nov 13, 2011 at 8:11 PM, Xin Tong <xerox.time.tech@gmail.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().


\
 
 \ /
  Last update: 2011-11-13 16:13    [W:0.024 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site