Thread (17 messages) flat view 17 messages, 7 authors, 2012-09-03

How to understand the macro __init?

From: Ezequiel Garcia <hidden>
Date: 2012-08-14 11:34:42

Hey wanny,

On Tue, Aug 14, 2012 at 1:04 AM, Mulyadi Santosa
[off-list ref] wrote:
Hi.. :)

On Tue, Aug 14, 2012 at 9:14 AM, ?? [off-list ref] wrote:
quoted
i use the __init for function print_k.
in my opinion  after the fisrt invoking the print_k in the hello_init.
the memory of print_k will be freed,and the second invoking will
not be executed.but the result of second invoking is executing .

why?
because you're still in module_init.... :)
Yes, and the function is still in the stack!

On the other hand.. think what would happen if things would work
like you say.

We would have a *very* strange behavior,
and pretty counter-intuitive, don't you think so?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help