kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Linked lists for userspace programs in Linux
@ 2014-06-13 18:38 Chandrasekaran Sivakumar
  2014-06-16  3:24 ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 5+ messages in thread
From: Chandrasekaran Sivakumar @ 2014-06-13 18:38 UTC (permalink / raw)
  To: kernelnewbies

Hi all,
I wanted to use linked lists in one of my userspace programs in Linux.
I tried two methods,

1. I used the modified version of list implementation given in
http://isis.poly.edu/kulesh/stuff/src/klist/list.h for my userspace
program. But when I compiled the kernel, there were errors showing
'redefinition of struct', 'conflicting types' etc.

2. When I tried to use list.h as such without any modifications, linked
list functions in my userspace program were not identified by the compiler
and displayed as undefined.

Would it be okay to modify the variable/function names in a copy of list.h
and use it in the userspace program ?

Please advise. Thank you.

Regards,
chandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140614/a41f7792/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-16 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 18:38 Linked lists for userspace programs in Linux Chandrasekaran Sivakumar
2014-06-16  3:24 ` Valdis.Kletnieks at vt.edu
2014-06-16  8:13   ` Robert P. J. Day
2014-06-16 13:35   ` Chandrasekaran Sivakumar
2014-06-16 16:01     ` Valdis.Kletnieks at vt.edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).