On Fri, Dec 24, 2004 at 05:05:11PM +0100, Paul Akkermans wrote: > 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, Hi, With this code you add the d_node to the linked list h_list (at the tail). Maybe that's the concept of linked list that you do not understand. Here is a link : http://stsdas.stsci.edu/bps/linked_list.html -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/