On Mon, 07 Sep 2009 09:14:52 -0700 Garrett D'Amore <[email protected]> wrote:
> Somnath kotur wrote: > > Hi All, > > Is there a generic linked list implementation in Solaris 10 U7 > > along with usage examples in the kernel ala linux? I see that even the > > e1000g driver seems to use it's own linked list implementation.,just wanted > > to know is there any particular reason for this? I see a <sys/list.h> and a > > list.c but now many users of this ? Pls correct me if i am wrong and /or > > point me to it's usage /semantics? > > > > list.c and list.h are relatively recent additions. Boomer (the audio > subsystem) uses them pretty heavily. Look in OpenSolaris in > usr/src/uts/common/io/audio/impl/*.c Garrett - they've been there since Solaris 9 update 5. 2003 isn't on my "recent" radar any more :-P Somnath - I strongly encourage you to use <sys/list.h> for your code. The best way to get examples of its usage is to use OpenGrok and see what pops up: http://src.opensolaris.org/source/search?q=sys%2Flist.h&defs=&refs=&path=&hist=&project=%2Fonnv cheers, James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
