hi all


alloc_text( "textsection", function1, ... )

Does the name of textsection is fix or not ?? How to name it??

In the DDK's serial sample code say

// INIT - only needed during init and then can be disposed
// PAGESRP0 - always paged / never locked
// PAGESER - must be locked when a device is open, else paged
// INIT is used for DriverEntry() specific code
// PAGESRP0 is used for code that is not often called and has nothing
// to do with I/O performance. An example,
IRP_MJ_PNP/IRP_MN_START_DEVICE
// support functions
// PAGESER is used for code that needs to be locked after an open for
both
// performance and IRQL reasons.

why PAGESRP0 will page out ,but PASESER did't ?? Does PAGESER0 is the
same named as "PAGE"??

Sorry for ask a studip question^^"""

Re: some question about alloc_text by Maxim

Maxim
Sun Mar 20 21:15:49 CST 2005

If the first 4 characters are "PAGE" - case IS sensitive here - then the
section is pageable.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

<hatepaul@gmail.com> wrote in message
news:1111297646.832370.244740@o13g2000cwo.googlegroups.com...
> hi all
>
>
> alloc_text( "textsection", function1, ... )
>
> Does the name of textsection is fix or not ?? How to name it??
>
> In the DDK's serial sample code say
>
> // INIT - only needed during init and then can be disposed
> // PAGESRP0 - always paged / never locked
> // PAGESER - must be locked when a device is open, else paged
> // INIT is used for DriverEntry() specific code
> // PAGESRP0 is used for code that is not often called and has nothing
> // to do with I/O performance. An example,
> IRP_MJ_PNP/IRP_MN_START_DEVICE
> // support functions
> // PAGESER is used for code that needs to be locked after an open for
> both
> // performance and IRQL reasons.
>
> why PAGESRP0 will page out ,but PASESER did't ?? Does PAGESER0 is the
> same named as "PAGE"??
>
> Sorry for ask a studip question^^"""
>



Re: some question about alloc_text by hatepaul

hatepaul
Sun Mar 20 22:07:04 CST 2005

> If the first 4 characters are "PAGE" - case IS sensitive here - then
the
> section is pageable.

Thanks to Maxim

Sorry,I forgot to search google first^^"""

I have saw someone say :

>>Do I need an explicite alloc_text(...) statement ?

>Only if you want the routine placed in paged pool.

If you and he say is true,why "PAGESER" is used for code that needs to
be locked ?? What is different between PAGESER and PAGESER0??

Thanks again


Re: some question about alloc_text by Maxim

Maxim
Mon Mar 21 19:07:16 CST 2005

> If you and he say is true,why "PAGESER" is used for code that needs to
> be locked ?? What is different between PAGESER and PAGESER0??

They can be locked independently.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com