On Tue, Sep 14, 2010 at 11:54 AM, mohit verma <mohit89mlnc@xxxxxxxxx> wrote: > thank you daniel > one more thing.... > in the link: > http://kernelnewbies.org/FAQ/current > ti variable is declared and without assigning it any value it is use to > calculate the address of thread_info( or as u said address of task_struct in > newer kernels) .our intention is to mask left most 13 bits to get base > address of structure. but it does not mean that any of the garbage value( > like ti) > can be used to calculate this. > i know i am skipping something silly. > but does ti (garbage) make any sense here? If you take a closer look you'll notice that the value of ti is not used, but only it's address (which is a kernel stack address). Please when replying, use Reply To All option :). thanks, Daniel. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ