Re: Using malloc() with driver code ?!
From: A.Ilamparithi (ilamparithi_at_msn.com)
Date: 08/03/04
- Next message: Glenn M: "Driver setups that pre-create dev nodes for usb devices"
- Previous message: Walter Oney: "Re: Using malloc() with driver code ?!"
- In reply to: Walter Oney: "Re: Using malloc() with driver code ?!"
- Next in thread: Ray Trent: "Re: Using malloc() with driver code ?!"
- Reply: Ray Trent: "Re: Using malloc() with driver code ?!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 2 Aug 2004 23:03:33 -0700
Thanks for u r answer. I am using memcpy inside my driver. But malloc i am
not able to. is memcpy is not in C runtime library ? Can you tell me the
difference between malloc() and memcpy () ?
With Thankz,
A. Ilamparithi.
"Walter Oney" <waltoney@oneysoft.com> wrote in message
news:410E64CD.D9BFD85@oneysoft.com...
> "A.Ilamparithi" wrote:
> > Is it is possible to use malloc() in the driver code?
>
> Short answer: no, use ExAllocatePoolWithTag instead.
>
> Longer answer: not unless you write your own implementation, since you
> must not link with the standard C runtime library that defines this
> function.
>
> --
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at http://www.oneysoft.com
- Next message: Glenn M: "Driver setups that pre-create dev nodes for usb devices"
- Previous message: Walter Oney: "Re: Using malloc() with driver code ?!"
- In reply to: Walter Oney: "Re: Using malloc() with driver code ?!"
- Next in thread: Ray Trent: "Re: Using malloc() with driver code ?!"
- Reply: Ray Trent: "Re: Using malloc() with driver code ?!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|