From: fs.rajat@gmail.com (Rajat Sharma)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Init global variables at run-time
Date: Sun, 22 Jan 2012 08:31:18 -0800 [thread overview]
Message-ID: <CAAYFAvrXwUU=zVDZ0fvOhkND3evaHTa3DVQU1egmE5AXqeQWJQ@mail.gmail.com> (raw)
In-Reply-To: <CAA+MarXFsq9B3H5mCEbv8YJ=5OqaKTpi3mwdt6VKSsCTrErmBw@mail.gmail.com>
Means the initialization function of this driver is called multiple
times, once on module load, further may be some reset functionality?
On Sun, Jan 22, 2012 at 2:14 AM, V l <vloveuvm@gmail.com> wrote:
> Can some one throw more light on this statement=>
>
> /* Init global variables at run-time, not as part of the declaration.
> * This is required to support init/de-init of the driver.
> Initialization
>
> * of globals as part of the declaration results in
> non-deterministic
> * behaviour since the value of the globals may be different on the
> * first time that the driver is initialized vs subsequent
> initializations.
>
>
> Thanks and Regards
>
> Sraddha
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
prev parent reply other threads:[~2012-01-22 16:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-22 10:14 Init global variables at run-time V l
2012-01-22 16:31 ` Rajat Sharma [this message]
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='CAAYFAvrXwUU=zVDZ0fvOhkND3evaHTa3DVQU1egmE5AXqeQWJQ@mail.gmail.com' \
--to=fs.rajat@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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;
as well as URLs for NNTP newsgroup(s).