HN2new | past | comments | ask | show | jobs | submitlogin

> So when you remove an element from the list, how do you make sure both lists are updated?

The remove_from_list() function has to be either payload-specific, or it needs a function pointer parameter which is called to handle the payload-specific unlinking. Assuming the lists are doubly-linked, which they typically are in the Linux kernel.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: