On Mon, Dec 06, 2010 at 11:50:59AM +0530, Meena Jain wrote: > Hello All, > > I am working on UDC development. I have a requirement to create a > single linked list. Why? > The file include/linux/list.h supports circularly > linked list. It also works just fine as a single linked list, just use it that way. > Here, list_head has both next and previous pointer. On > exploring on net, I came across one patch related to Single Linked > List support > > Reference: > From: Lightweight Patch Manager <patch@xxxxxxxxxxxxxxxxx> > To: Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx> > Subject: [PATCH][2.5] Single linked lists for Linux,v2 > Date: Wed, 25 Sep 2002 22:50:26 +0000 > Cc: Tomas Szepe <szepe@xxxxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx> > > But I didn't find any file slist.h in kernel source. > > Kindly confirm whether this patch is included in mainline or not. You should be able to confirm this, as the source code is freely available, right? Also, that patch was from 2002, a very long time ago. > If not, then from where I can download the complete patch. Or Is there > any other way to support singly linked list in kernel. Just use list.h as-is, it should be fine for your usage. good luck, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html