📄 irplist.h
字号:
//
// File: irplist.h
// Description: declaration of class IrpList
//
// Created: Wed. Jan 15, 2003
//
//
// Copyright and Disclaimer:
//
// ---------------------------------------------------------------
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// IN NO EVENT SHALL CONEXANT BE LIABLE TO ANY PARTY FOR DIRECT,
// INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
// INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE
// AND ITS DOCUMENTATION, EVEN IF CONEXANT HAS BEEN ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Copyright (c) 2000-2001 Conexant Systems, Inc.
//
// All Rights Reserved.
// ---------------------------------------------------------------
//
// Module Revision Id:
//
//
#ifndef _IRP_LIST_H_
#define _IRP_LIST_H_
/////////////////////////////////////////////////////////////////////////////////////////
//Class IrpList is a list of IRPs. This allows IRPs to be put on the tail of the list,
// removed from the head of the list, or a specific IRP may be removed from the middle
// of the list.
//
//
class IrpList
{
public:
IrpList();
//Adds an IRP to the end of the list
VOID add(PIRP p_irp);
//Gets an IRP from the head of the list
PIRP remove();
//Removes the specified IRP from the list
BOOLEAN remove(PIRP p_irp);
private:
KSPIN_LOCK _spin_lock;
LIST_ENTRY _list_head;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -