Hi,
Is it possible to use malloc( ) function in SCSIminiport dirver which I
am writing.
thanks and regards
sreenivas
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Malloc, absolutely not, unless you want to write your own, and manage your
own heap. However, you can use ExAllocatePool, but you will need a source
module that you link with ntddk.h, and then call a function wrapper that
allocates and frees memory.
Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net
-----Original Message-----
From: sreenivas_konanki [mailto:xxxxx@rediffmail.com]
Sent: Wednesday, January 23, 2002 7:56 PM
To: NT Developers Interest List
Subject: [ntdev] Can I use malloc( ) in miniport driver implementation
Hi,
Is it possible to use malloc( ) function in SCSIminiport dirver which I
am writing.
thanks and regards
sreenivas
You are currently subscribed to ntdev as: xxxxx@broadstor.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
No.
In miniports, all memory is assumed to be:
- per-request
or
- per-LUN
or
- per-device.
Set the Device/Lu/SRB extension sizes as necessary in your miniport parameters structure, and SCSIPORT will pre-allocate this memory
for you.
Note that for busmaster miniports, SRB and device extensions are DMAble, while LUN extension is not.
Max
----- Original Message -----
From: “sreenivas_konanki”
To: “NT Developers Interest List”
Sent: Thursday, January 24, 2002 3:55 AM
Subject: [ntdev] Can I use malloc( ) in miniport driver implementation
> Hi,
> Is it possible to use malloc( ) function in SCSIminiport dirver which I
> am writing.
>
> thanks and regards
> sreenivas
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com