public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "zhaogongyi.jxjian" <zhaogongyi.jxjian@163.com>,
	linux-kernel@vger.kernel.org
Subject: Re: A problem about loading module
Date: Tue, 29 Mar 2016 09:32:36 +1030	[thread overview]
Message-ID: <87d1qecik3.fsf@rustcorp.com.au> (raw)
In-Reply-To: <3985592d.1589f.153a94428e7.Coremail.zhaogongyi.jxjian@163.com>

"zhaogongyi.jxjian" <zhaogongyi.jxjian@163.com> 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.

           reply	other threads:[~2016-03-29  0:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3985592d.1589f.153a94428e7.Coremail.zhaogongyi.jxjian@163.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1qecik3.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhaogongyi.jxjian@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox