[SeaBIOS] [PATCH 1/4] Add basic linked list operations

Ian Campbell Ian.Campbell at citrix.com
Thu Mar 29 12:41:23 CEST 2012


On Wed, 2012-03-28 at 22:27 -0400, Kevin O'Connor wrote:
> On Wed, Mar 28, 2012 at 04:39:07PM +0200, Gerd Hoffmann wrote:
> > On 03/28/12 06:28, Alexey Korolev wrote:
> > > This linked list implementation is partially based on kernel code. So it
> > > should be quite stable
> > 
> > How about just copying the file?
> > 
> > I've used the linux kernel list implementation elsewhere too and it
> > worked just fine with only minor tweaks (remove some likely()/unlikely()
> > macros IIRC).
> 
> Linux is GPLv2 while SeaBIOS is LGPLv3, so some care should be taken.

FWIW In Xen we decided to go with the BSD list macros in our LGPL
library interfaces to avoid a similar sort issue.
http://xenbits.xen.org/hg/xen-unstable.hg/file/74d2af0b56ea/tools/include/xen-external
has that plus a handy sed script to namespace the interface, although I
don't suppose that will matter inside seabios.

Ian.




More information about the SeaBIOS mailing list