<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi all,</div><div style="font-family:arial,sans-serif;font-size:13px">I wanted to use linked lists in one of my userspace programs in Linux. </div><div style="font-family:arial,sans-serif;font-size:13px">
<div>I tried two methods,</div><div><br></div><div>1. I used the modified version of list implementation given in <a href="http://isis.poly.edu/kulesh/stuff/src/klist/list.h" target="_blank">http://isis.poly.edu/kulesh/stuff/src/klist/list.h</a> for my userspace program. But when I compiled the kernel, there were errors showing 'redefinition of struct', 'conflicting types' etc. </div>
<div><br></div><div>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. </div><div><br></div><div>
Would it be okay to modify the variable/function names in a copy of list.h and use it in the userspace program ?</div><div><br></div><div>Please advise. Thank you.</div><div><br></div></div><div><div dir="ltr">Regards,<div>
chandru</div></div></div>
</div>