当前位置:网站首页>正确遍历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
- Leetcode - Sword finger offer 37, 38
- Rust search server, rust quick service finding tutorial
- Sparkcontext: error initializing sparkcontext solution
- 怎样写一篇赏心悦目的英文数学论文
- Simple use of drools decision table
- 堆 AcWing 839. 模拟堆
- Deep copy event bus
- Mongodb redis differences
- . Net wechat message template push
猜你喜欢
趣味 面试题
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
Writing method of then part in drools
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
JS8day(滚动事件(scroll家族),offset家族,client家族,轮播图案例(待做))
区间DP AcWing 282. 石子合并
[ybtoj advanced training guide] similar string [string] [simulation]
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
What is the relationship between NFT and metauniverse? How to view the market? The future market trend of NFT
防抖 节流
随机推荐
线性DP AcWing 898. 数字三角形
JS10day(api 阶段性完结,正则表达式简介,自定义属性,过滤敏感词案例,注册模块验证案例)
BOM DOM
Fastdateformat why thread safe
一些突然迸发出的程序思想(模块化处理)
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
模块化 CommonJS ES Module
MySQL indexes and transactions
通过反射执行任意类的任意方法
bellman-ford AcWing 853. 有边数限制的最短路
Docsify deploy IIS
async/await 异步函数
The differences and relationships among port, targetport, nodeport and containerport in kubenetes
Fluent fluent library encapsulation
Sweetheart leader: Wang Xinling
Find the common ancestor of any two numbers in a binary tree
Mysql database foundation
上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
Post request body content cannot be retrieved repeatedly
Anti shake throttle