timer function

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

 



i have a module of mine

in which i have a data strcuture
struct my_data{
.
.
.
.

}

struct my_data m1;

there is timer handling function
handle_timer(data)
{



}



init_module
{
.
.
timer initialzed

}


suppose i want to access the my_data global data struct m1
in handle_timer function .....

then my ques is

will i be able to access m1 in handle_timer directly thinking m1 a global variable
i know it can be passed thru data arg but lets say i dont do that ...

or

it will nt be accessible there as handle timer when it will be executed ...it'll be in interrupt context
at that time some other process might be in execution ...
then these global var m1 wont be in its access ....


pl clarify which of the two thoughts is correct .




--
Thanks & Regards
Nidhi

[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