problem with LIST_ENTRY

Hi,
I use LIST_ENTRY header to maintain a list of some struct.But now I need to access these strcuts in turn without remove any of them , what can I do?

You can browse the list using the flink member of the list head. That
points to the next element. When flink point to the list head, you’ve
reached the end of the list.

Mat

-----Original Message-----
From: Comstar Yan [mailto:xxxxx@hotmail.com]
Sent: Friday, March 21, 2003 6:19 AM
To: NT Developers Interest List
Subject: [ntdev] problem with LIST_ENTRY

Hi,
I use LIST_ENTRY header to maintain a list of some struct.But now I need
to access these strcuts in turn without remove any of them , what can I do?
b嫐.Ф\??辷?底痡色㈦a夑嗪)ezj-r墦㈤旃??薇檩i筞濭)m毥轫u膈油?X?&

Use a simple for(;:wink: loop, or while loop or do loop looking for current equal to head to know the end. Use RemoveEntryList if you need to remove that entry. And doing so you have just screwed up the syncronization since that function does not have an ExInterlockedXxxx corollary.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com
“Comstar Yan” wrote in message news:xxxxx@ntdev…
Hi,
I use LIST_ENTRY header to maintain a list of some struct.But now I need to access these strcuts in turn without remove any of them , what can I do?

Shoulda added this to what I wrote earlier … the thought at Microsoft is that you will never ever ever need to cancel an IRP in the middle of a bunch of IRPs that are waiting on hardware. Never ever do you need to do that 'cuz you can’t do that anyway … “I’m late I’m late” said the white rabbit dashing away.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com
“Comstar Yan” wrote in message news:xxxxx@ntdev…
Hi,
I use LIST_ENTRY header to maintain a list of some struct.But now I need to access these strcuts in turn without remove any of them , what can I do?