RE: Free a list_head

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> bounce@xxxxxxxxxxxx] On Behalf Of Fernando Apesteguía

>I would like to know how to free a list_head.

> I have almost 200 elements and I'm wonder if I must traverse the list for 

All list entry removals are O(1). I don't think you need to worry about this too much. You shouldn't have a very large number of list entries within the kernel anyway. 

./h



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux