Re: Init global variables at run-time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux