当前位置:网站首页>正确遍历EntryList方法
正确遍历EntryList方法
2022-07-02 09:45:00 【如鹿渴慕泉水】
InitializeListHead(&fdoData->pnpNotificatioEntryList);
PLIST_ENTRY nextEntry = NULL;
if (!IsListEmpty(&fdoData->pnpNotificatioEntryList))
{
for (PLIST_ENTRY List = fdoData->pnpNotificatioEntryList.Flink; List != &fdoData->pnpNotificatioEntryList; List = nextEntry)
{
nextEntry = List->Flink;
PPNP_NOTIFICATIO_ENTRY pnpntfy = CONTAINING_RECORD(List, PNP_NOTIFICATIO_ENTRY, ListEntry);
if (pnpntfy->Fetched == TRUE)
{
KeAcquireSpinLock(&fdoData->pnpSpinLockHandle, &oldIrql);
RemoveEntryList(&pnpntfy->ListEntry);
KeReleaseSpinLock(&fdoData->pnpSpinLockHandle, oldIrql);
FREENP(pnpntfy);
}
}
}
边栏推荐
- . Net, C # basic knowledge
- PR 2021 quick start tutorial, learn about the and functions of the timeline panel
- Drools dynamically add, modify, and delete rules
- Redis introduction, scenario and data type
- Sparkcontext: error initializing sparkcontext solution
- Redis transaction mechanism implementation process and principle, and use transaction mechanism to prevent inventory oversold
- 计数类DP AcWing 900. 整数划分
- Window10 upgrade encountered a big hole error code: 0xc000000e perfect solution
- Lombok common annotations
- drools动态增加、修改、删除规则
猜你喜欢
Is the neural network (pinn) with embedded physical knowledge a pit?
Adding database driver to sqoop of cdh6
计数类DP AcWing 900. 整数划分
Dijkstra AcWing 850. Dijkstra求最短路 II
[ybtoj advanced training guidance] cross the river [BFS]
区间DP AcWing 282. 石子合并
arcgis js 4. Add pictures to x map
What is the relationship between NFT and metauniverse? How to view the market? The future market trend of NFT
The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night
深拷貝 事件總線
随机推荐
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
BOM DOM
MySQL与PostgreSQL抓取慢sql的方法
Enhance network security of kubernetes with cilium
Distributed machine learning framework and high-dimensional real-time recommendation system
Sub thread get request
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
计数类DP AcWing 900. 整数划分
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
High performance erasure code coding
drools执行指定的规则
线性DP AcWing 896. 最长上升子序列 II
怎样写一篇赏心悦目的英文数学论文
染色法判定二分图 AcWing 860. 染色法判定二分图
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
Drools dynamically add, modify, and delete rules
Go learning notes - go based interprocess communication
[ybtoj advanced training guide] similar string [string] [simulation]
Typora+docsify quick start
Mysql database foundation