Re: list_entry() question

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

 



> I walk the list of work items for a controller, using list_for_each()
> and then I get the struct work_item variable using
> list_entry(cursor, struct work_item, list_item);

it's not an answer to your question, but have you looked at using
list_for_each_entry() instead ? I like that one a lot, it just a far
more natural iterator..


-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
Test the interaction between Linux and your BIOS via http://www.linuxfirmwarekit.org


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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