From: Julia Lawall Date: Sun, 23 Mar 2008 08:06:12 +0000 Subject: Re: any local implementations of linked lists? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On Sun, 23 Mar 2008, Robert P. J. Day wrote: > > as i'm currently perusing the implementation of the kernel linked > list, it occurred to me to wonder if there are still parts of the > kernel that insist on implementing their own design unnecessarily > (which they're not supposed to do). anyone know of any such examples, > out of curiosity? thanks. There are a lot of occurrences of structures that have a field of type pointer to the structure, often with the suggestive name "next". But at least some of them have only a next field and no prev field. Are you interested in them anyway? An example is: arch/um/include/aio.h struct aio_context { int reply_fd; struct aio_context *next; }; julia