simple coding question

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

 



Hi all,
 
I have these 2 short pieces of code.
-----------------------------------------------------------------
struct input_handle {
 
 void *private;
 
 int open;
 char *name;
 
 struct input_dev *dev;
 struct input_handler *handler;
 
 struct list_head d_node;
 struct list_head h_node;
};
-----------------------------------------------------------------
static void input_link_handle(struct input_handle *handle)
{
 list_add_tail(&handle->d_node, &handle->dev->h_list);
 list_add_tail(&handle->h_node, &handle->handler->h_list);
}
--------------------------------------------------------------------------
 
Can somebody tell me what I am adding in this function:
 
list_add_tail(&handle->d_node, &handle->dev->h_list);
is it a pointer to a d_node or what? Can somebody help me?
 
Thanks in advance an merry christmas to you all,
 
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