2016-03-29 00:15:52

by Rusty Russell

[permalink] [raw]
Subject: Re: A problem about loading module

"zhaogongyi.jxjian" <[email protected]> writes:
> My question is when my module_init defined as:
> void __init__ func_init(*)
> then the ret will be alterable,it depends on specifically running env,that's what we want?

Hi,

This will not work reliably. You must define your init as

int __init__ func_init(void)

Cheers,
Rusty.