Hello everybody,
I want to pass the link list from user mode to kernel mode while writing driver through IOCTLs…
then what should i do?
which io should i use?
where i get the linklist in kernel code?
Pravin gawale.
BE Information Technology,
MOB.No.9860488908
VIT,PUNE
Send instant messages to your online friends http://in.messenger.yahoo.com
This is a terrible idea, you will have to validate and lock every element of
the list or else you have a security hole asking for a crash or worse. If
at all possible you should not pass pointers directly from user mode to
kernel (the buffer pointers on standard calls are special since the OS
validates them).
Tell us why you thing you need to do something that is likely to crash the
system, and unless you have a lot of data in each element of the list is
going to be very slow.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
“pravin gawale” wrote in message
news:xxxxx@ntdev…
> Hello everybody,
>
> I want to pass the link list from user mode to kernel mode while writing
> driver through IOCTLs…
> then what should i do?
> which io should i use?
> where i get the linklist in kernel code?
>
>
>
> Pravin gawale.
> BE Information Technology,
> MOB.No.9860488908
> VIT,PUNE
> Send instant messages to your online friends http://in.messenger.yahoo.com
Consider converting the list to an array first. Iterating over an array is much simpler.
d
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of pravin gawale
Sent: Monday, January 16, 2006 1:42 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] problem of linklist passing from usermode to kernel mode
Hello everybody,
?
I want to pass the link list from user mode to kernel mode while writing driver through IOCTLs…
then what should i do?
which io should i use?
where i get the linklist in kernel code?
Pravin gawale.
BE Information Technology,
MOB.No.9860488908
VIT,PUNE
Send instant messages to your online friends http://in.messenger.yahoo.com — Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256 You are currently subscribed to ntdev as: xxxxx@microsoft.com To unsubscribe send a blank email to xxxxx@lists.osr.com