码迷,mamicode.com
首页 > 其他好文 > 详细

POOL_TYPE enumeration

时间:2014-05-19 19:47:09      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:des   c   code   tar   http   int   


typedef
enum _POOL_TYPE { NonPagedPool, NonPagedPoolExecute                   = NonPagedPool, PagedPool, NonPagedPoolMustSucceed               = NonPagedPool + 2, DontUseThisType, NonPagedPoolCacheAligned              = NonPagedPool + 4, PagedPoolCacheAligned, NonPagedPoolCacheAlignedMustS         = NonPagedPool + 6, MaxPoolType, NonPagedPoolBase                      = 0, NonPagedPoolBaseMustSucceed           = NonPagedPoolBase + 2, NonPagedPoolBaseCacheAligned          = NonPagedPoolBase + 4, NonPagedPoolBaseCacheAlignedMustS     = NonPagedPoolBase + 6, NonPagedPoolSession                   = 32, PagedPoolSession                      = NonPagedPoolSession + 1, NonPagedPoolMustSucceedSession        = PagedPoolSession + 1, DontUseThisTypeSession                = NonPagedPoolMustSucceedSession + 1, NonPagedPoolCacheAlignedSession       = DontUseThisTypeSession + 1, PagedPoolCacheAlignedSession          = NonPagedPoolCacheAlignedSession + 1, NonPagedPoolCacheAlignedMustSSession  = PagedPoolCacheAlignedSession + 1, NonPagedPoolNx                        = 512, NonPagedPoolNxCacheAligned            = NonPagedPoolNx + 4, NonPagedPoolSessionNx                 = NonPagedPoolNx + 32 } POOL_TYPE;

Constant

NonPagedPool

Nonpaged pool, which is nonpageable system memory. Nonpaged pool can be accessed from any IRQL, but it is a scarce resource and drivers should allocate it only when necessary.

System memory allocated with the NonPagedPool pool type is executable. For more information, see the description of the NonPagedPoolExecute pool type.

Starting with Windows 8, drivers should allocate most or all of their nonpaged memory from the no-execute (NX) nonpaged pool instead of the executable nonpaged pool. For more information, see the description of the NonPagedPoolNx pool type.

NonPagedPoolExecute

Starting with Windows 8, NonPagedPoolExecute is an alternate name for the NonPagedPool value. This value indicates that the allocated memory is to be nonpaged and executable—that is, instruction execution is enabled in this memory. To port a driver from an earlier version of Windows, you should typically replace all or most instances of the NonPagedPool name in the driver source code with NonPagedPoolNx. Avoid replacing instances of the NonPagedPool name with NonPagedPoolExecute except in cases in which executable memory is explicitly required. 

PagedPool

Paged pool, which is pageable system memory. Paged pool can only be allocated and accessed at IRQL < DISPATCH_LEVEL.

NonPagedPoolMustSucceed

This value is for internal use only, and is allowed only during system startup. Drivers must not specify this value at times other than system startup, because a "must succeed" request crashes the system if the requested memory size is unavailable.

DontUseThisType

Reserved for system use.

NonPagedPoolCacheAligned

Nonpaged pool, aligned on processor cache boundaries. This value is for internal use only.

PagedPoolCacheAligned

Paged pool, aligned on processor cache boundaries. This value is for internal use only.

NonPagedPoolCacheAlignedMustS

This value is for internal use only, and is allowed only during system startup. It is the cache-aligned equivalent of NonPagedPoolMustSucceed.

MaxPoolType

Reserved for system use.

NonPagedPoolBase

Reserved for system use.

NonPagedPoolBaseMustSucceed

Reserved for system use.

NonPagedPoolBaseCacheAligned

Reserved for system use.

NonPagedPoolBaseCacheAlignedMustS

Reserved for system use.

NonPagedPoolSession

Deprecated. Do not use.

PagedPoolSession

Deprecated. Do not use.

NonPagedPoolMustSucceedSession

Deprecated. Do not use.

DontUseThisTypeSession

Deprecated. Do not use.

NonPagedPoolCacheAlignedSession

Deprecated. Do not use.

PagedPoolCacheAlignedSession

Deprecated. Do not use.

NonPagedPoolCacheAlignedMustSSession

Deprecated. Do not use.

NonPagedPoolNx

No-execute (NX) nonpaged pool. This pool type is available starting with Windows 8. In contrast to the nonpaged pool designated by NonPagedPool, which allocates executable memory, the NX nonpaged pool allocates memory in which instruction execution is disabled. For more information, see No-Execute (NX) Nonpaged Pool.

Nonpaged pool can be accessed from any IRQL, but it is a scarce resource and drivers should allocate it only when necessary.

NonPagedPoolNxCacheAligned

NX nonpaged pool, aligned on processor cache boundaries. This value is reserved for exclusive use by the operating system.

NonPagedPoolSessionNx

Reserved for exclusive use by the operating system.

Requirements

Header:  Wdm.h(include Wdm.h,Ntddk.h,or Ntifs.h)

POOL_TYPE enumeration,布布扣,bubuko.com

POOL_TYPE enumeration

标签:des   c   code   tar   http   int   

原文地址:http://www.cnblogs.com/alsofly/p/3734616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!