This question is somewhat similar to one asked few days ago.
I want to delay the deletion of the nodes from the linked list. For this, instead of deleting the node from the linked list, I mark the node as deleted and attach a deletion timestamp to the node (since I want to delete the nodes older than say 10 seconds).
Then a garbage collector (which wakes up after some time interval) scans the linked list and deletes the nodes marked as deleted older than 10 secs. For this I have used KeSetTimerEx. The pitfall in this design is that even though there is no node marked as deleted, the garbage collector wakes up and scans the linked list.
Any other way I can achieve this ? I had thought of a thread, but then it too suffers from same problem.
Abhijit
Move the deleted nodes to a second linked list instead of marking.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: Abhijit
Newsgroups: ntdev
To: Windows System Software Devs Interest List
Sent: Saturday, July 31, 2004 3:05 PM
Subject: [ntdev] Alternative to KeSetTimerEx
This question is somewhat similar to one asked few days ago.
I want to delay the deletion of the nodes from the linked list. For this, instead of deleting the node from the linked list, I mark the node as deleted and attach a deletion timestamp to the node (since I want to delete the nodes older than say 10 seconds).
Then a garbage collector (which wakes up after some time interval) scans the linked list and deletes the nodes marked as deleted older than 10 secs. For this I have used KeSetTimerEx. The pitfall in this design is that even though there is no node marked as deleted, the garbage collector wakes up and scans the linked list.
Any other way I can achieve this ? I had thought of a thread, but then it too suffers from same problem.
Abhijit
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
How about setting the timer in the function you call to mark the nodes
for deletion?
Abhijit wrote:
This question is somewhat similar to one asked few days ago.
I want to delay the deletion of the nodes from the linked list. For
this, instead of deleting the node from the linked list, I mark the node
as deleted and attach a deletion timestamp to the node (since I want to
delete the nodes older than say 10 seconds).
Then a garbage collector (which wakes up after some time interval) scans
the linked list and deletes the nodes marked as deleted older than 10
secs. For this I have used KeSetTimerEx. The pitfall in this design is
that even though there is no node marked as deleted, the garbage
collector wakes up and scans the linked list.
Any other way I can achieve this ? I had thought of a thread, but then
it too suffers from same problem.
Abhijit
–
…/ray..
Please remove “.spamblock” from my email address if you need to contact
me outside the newsgroup.