Ok, i forgot to mention that i had included that file, previously as well i was using all the other list reltd functions like list_insert_tail() and is_list_empty() etc and there were no cribs about their definition
----- Original Message ---- From: James C. McPherson <[email protected]> To: Somnath kotur <[email protected]> Cc: Garrett D'Amore <[email protected]>; [email protected] Sent: Tuesday, September 8, 2009 12:16:50 PM Subject: Re: [driver-discuss] Generic linked list implementation in kernel On Mon, 07 Sep 2009 23:44:34 -0700 (PDT) Somnath kotur <[email protected]> wrote: > HI James, > Nope , i dont have any other definitions of that function ...just > to try it out again , i just declared a simple 'list_t' variable and called > the API in my _init() > > list_t my_list; > list_remove_head(&my_list); > > As before ,driver failed to attach succesfully, and threw out this error msg: > > > Sep 8 12:11:19 se genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot > load module '<drivername>' > Sep 8 12:11:19 se genunix: [ID 819705 kern.notice] > /usr/kernel/drv/amd64/<drivername>: undefined symbol > Sep 8 12:11:19 se genunix: [ID 826211 kern.notice] 'list_remove_head' > > Any ideas? yeah, you appear to have failed to add the line #include <sys/list.h> in your #include block. James -- 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
