All of lore.kernel.org
 help / color / mirror / Atom feed
* Init global variables at run-time
@ 2012-01-22 10:14 V l
  2012-01-22 16:31 ` Rajat Sharma
  0 siblings, 1 reply; 2+ messages in thread
From: V l @ 2012-01-22 10:14 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120122/c7ca9097/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Init global variables at run-time
  2012-01-22 10:14 Init global variables at run-time V l
@ 2012-01-22 16:31 ` Rajat Sharma
  0 siblings, 0 replies; 2+ messages in thread
From: Rajat Sharma @ 2012-01-22 16:31 UTC (permalink / raw)
  To: kernelnewbies

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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-22 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-22 10:14 Init global variables at run-time V l
2012-01-22 16:31 ` Rajat Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.