input.c question

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

 



Hi group,
 
I am trying to read input.c. Can somebody tell me what this piece of code does?
 
----------------------------------------------------------------------------------------------------------------------------------
if (dev->grab)
  dev->grab->handler->event(dev->grab, type, code, value);
 else
  list_for_each_entry(handle, &dev->h_list, d_node)
   if (handle->open)
    handle->handler->event(handle, type, code, value);
 
----------------------------------------------------------------------------------------------------------------------------------
 
What is dev->grab? I mean what represents it? is it the same as handle or dev?
 
With kind regards,
 
PA

[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