Free a list_head
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hi,
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 the elements and do:
list_for_each(...){
my_entry=list_entry(....)
list_del(my_entry)
kfree(my_entry)
}
Should I do this in this way?
Best regards!
[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]