F1- Help(KernelThread)

hi all,

I need an help from u all.i created a thread (in
driver entry)and i intialized an event in the same
driver entry.

In some other function i’m setting the event and when
this event is signaled the thread will do some
operation depending (till then the thread will wait on
this particular event).

my problem is i want to send a parameter to thread
from the function where i m setting the event …say
for example i m calling kesetevent in X() function,
and i want to send a parameter from this function to a
thread called Y(). how do i do this…

thanks
kavitha


Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

What you are trying to do is similar to work items. When you create the
thread you need to pass it an address of memory (work item) that it is going
to look at when the event is set. In the piece of code that sets the
event, that code needs to put into the shared memory the operation for the
thread to perform.

–Mark


Mark Cariddi
Open Systems Resources, Inc.
www.osr.com
“kavitha subramanian” wrote in message
news:xxxxx@ntfsd…
>
> hi all,
>
> I need an help from u all.i created a thread (in
> driver entry)and i intialized an event in the same
> driver entry.
>
> In some other function i’m setting the event and when
> this event is signaled the thread will do some
> operation depending (till then the thread will wait on
> this particular event).
>
> my problem is i want to send a parameter to thread
> from the function where i m setting the event …say
> for example i m calling kesetevent in X() function,
> and i want to send a parameter from this function to a
> thread called Y(). how do i do this…
>
> thanks
> kavitha
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
>

> my problem is i want to send a parameter to thread

from the function where i m setting the event …say

KexxxQueue functions are for this.
They are documented in IFS kit and used internally by ExQueueWorkItem.

Max