Re: and there's a routine for *sorting* a kernel linked list as well

2010-11-22 Thread Robert P. J. Day
On Sun, 21 Nov 2010, Greg KH wrote: > On Sun, Nov 21, 2010 at 02:23:18AM -0500, Robert P. J. Day wrote: > > > > what started off as just some nonchalant poking around in kernel > > data structures has become moderately educational. i had no idea > > that there is support for *sorting* the nodes

Re: and there's a routine for *sorting* a kernel linked list as well

2010-11-21 Thread Greg KH
On Sun, Nov 21, 2010 at 02:23:18AM -0500, Robert P. J. Day wrote: > > what started off as just some nonchalant poking around in kernel > data structures has become moderately educational. i had no idea that > there is support for *sorting* the nodes of a kernel LL in > : > > > void list_sort(

and there's a routine for *sorting* a kernel linked list as well

2010-11-20 Thread Robert P. J. Day
what started off as just some nonchalant poking around in kernel data structures has become moderately educational. i had no idea that there is support for *sorting* the nodes of a kernel LL in : void list_sort(void *priv, struct list_head *head, int (*cmp)(void *priv, struct l