Re: Equivalent of sleep/wakeup pair in N (In short)

Hi
I just found a win32 api SignalObjectAndWait(). I want
the exact equivalent in kernel.

Thanks,
Sajeev.


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
Visit http://in.finance.yahoo.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

KeWaitForSingle/MultipleObject

BUT … You MUST be at PASSIVE_LEVEL to wait. If you are at DISPATCH_LEVEL,
you cannot wait and the function is use to simply test the state of the
object(s).

Gary G. Little
Broadband Storage, Inc.
xxxxx@broadstor.com
xxxxx@inland.net
(949) 7372731

-----Original Message-----
From: sajeev sas [mailto:xxxxx@yahoo.com]
Sent: Monday, December 10, 2001 10:47 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Equivalent of sleep/wakeup pair in N (In short)

Hi
I just found a win32 api SignalObjectAndWait(). I want
the exact equivalent in kernel.

Thanks,
Sajeev.


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
Visit http://in.finance.yahoo.com/


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

> I just found a win32 api SignalObjectAndWait(). I want

the exact equivalent in kernel.

Use KeSetEvent with Wait==TRUE, followed by KeWaitXxx. Read KeSetEvent
doc for details.


Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.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

KeSetEvent with Wait = TRUE
then just after this - KeWaitForSingleObject

Read KeSetEvent documentation for details.

Max

----- Original Message -----
From: “sajeev sas”
To: “NT Developers Interest List”
Sent: Tuesday, December 11, 2001 9:46 AM
Subject: [ntdev] Re: Equivalent of sleep/wakeup pair in N (In short)

> Hi
> I just found a win32 api SignalObjectAndWait(). I want
> the exact equivalent in kernel.
>
> Thanks,
> Sajeev.
>
> ________________________________________________________________________
> For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
> Visit http://in.finance.yahoo.com/
>
> —
> 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

Hi
Thanks Max and others. But I want the set and wait to
be atomic. I can’t accomodate a context switch between
set and wait. Does it mean, the only way is to raise
the IRQL to DISPATCH, set and wait and then lower the
IRQL.
Thanks,
Sajeev.

wrote: > KeSetEvent with Wait = TRUE

then just after this - KeWaitForSingleObject

Read KeSetEvent documentation for details.

Max

----- Original Message -----

> Hi
> I just found a win32 api SignalObjectAndWait(). I
want
> the exact equivalent in kernel.


> For Stock Quotes, Finance News, Insurance, Tax
Planners, Mutual Funds…
> Visit http://in.finance.yahoo.com/
>
> —
> 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:
xxxxx@yahoo.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
Visit http://in.finance.yahoo.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

This is exactly what is Wait = TRUE parameter intended for. See KeSetEvent()
docs as Max mentioned.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@yahoo.com[SMTP:xxxxx@yahoo.com]
Reply To: xxxxx@lists.osr.com
Sent: Wednesday, December 12, 2001 4:53 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: Equivalent of sleep/wakeup pair in N (In short)

Hi
Thanks Max and others. But I want the set and wait to
be atomic. I can’t accomodate a context switch between
set and wait. Does it mean, the only way is to raise
the IRQL to DISPATCH, set and wait and then lower the
IRQL.
Thanks,
Sajeev.

wrote: > KeSetEvent with Wait = TRUE
> then just after this - KeWaitForSingleObject
>
> Read KeSetEvent documentation for details.
>
> Max
>
> ----- Original Message -----
>
> > Hi
> > I just found a win32 api SignalObjectAndWait(). I
> want
> > the exact equivalent in kernel.


> > For Stock Quotes, Finance News, Insurance, Tax
> Planners, Mutual Funds…
> > Visit http://in.finance.yahoo.com/
> >
> > —
> > 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:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
Visit http://in.finance.yahoo.com/


You are currently subscribed to ntdev as: michal.vodicka@st.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

Thanks a lot. I got it.

-Sajeev.

— Michal Vodicka
wrote: > This is exactly what is Wait = TRUE parameter
> intended for. See KeSetEvent()
> docs as Max mentioned.
>
> Best regards,
>
> Michal Vodicka
> STMicroelectronics Design and Application s.r.o.
> [michal.vodicka@st.com, http:://www.st.com]
>
> > ----------
> > From: xxxxx@yahoo.com[SMTP:xxxxx@yahoo.com]
> > Reply To: xxxxx@lists.osr.com
> > Sent: Wednesday, December 12, 2001 4:53 AM
> > To: xxxxx@lists.osr.com
> > Subject: [ntdev] Re: Equivalent of sleep/wakeup
> pair in N (In short)
> >
> > Hi
> > Thanks Max and others. But I want the set and wait
> to
> > be atomic. I can’t accomodate a context switch
> between
> > set and wait. Does it mean, the only way is to
> raise
> > the IRQL to DISPATCH, set and wait and then lower
> the
> > IRQL.
> > Thanks,
> > Sajeev.
> >
> > wrote: > KeSetEvent with Wait = TRUE
> > > then just after this - KeWaitForSingleObject
> > >
> > > Read KeSetEvent documentation for details.
> > >
> > > Max
> > >
> > > ----- Original Message -----
> > >
> > > > Hi
> > > > I just found a win32 api
> SignalObjectAndWait(). I
> > > want
> > > > the exact equivalent in kernel.
> >
>

> > > > For Stock Quotes, Finance News, Insurance, Tax
> > > Planners, Mutual Funds…
> > > > Visit
> http://in.finance.yahoo.com/
> > > >
> > > > —
> > > > 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:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
>

> > For Stock Quotes, Finance News, Insurance, Tax
> Planners, Mutual Funds…
> > Visit http://in.finance.yahoo.com/
> >
> > —
> > You are currently subscribed to ntdev as:
> michal.vodicka@st.com
> > To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

________________________________________________________________________
For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
Visit http://in.finance.yahoo.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

Yes, this is exactly what I suggested.
KeSetEvent with Wait = TRUE returns on DISPATCH_LEVEL with KiDispatcherLock held.
So, nobody can do a context switch between this KeSetEvent and KeWaitForSingleObject.

Max

----- Original Message -----
From: “sajeev sas”
To: “NT Developers Interest List”
Sent: Wednesday, December 12, 2001 6:53 AM
Subject: [ntdev] Re: Equivalent of sleep/wakeup pair in N (In short)

> Hi
> Thanks Max and others. But I want the set and wait to
> be atomic. I can’t accomodate a context switch between
> set and wait. Does it mean, the only way is to raise
> the IRQL to DISPATCH, set and wait and then lower the
> IRQL.
> Thanks,
> Sajeev.
>
> wrote: > KeSetEvent with Wait = TRUE
> > then just after this - KeWaitForSingleObject
> >
> > Read KeSetEvent documentation for details.
> >
> > Max
> >
> > ----- Original Message -----
> >
> > > Hi
> > > I just found a win32 api SignalObjectAndWait(). I
> > want
> > > the exact equivalent in kernel.
>
> > > For Stock Quotes, Finance News, Insurance, Tax
> > Planners, Mutual Funds…
> > > Visit http://in.finance.yahoo.com/
> > >
> > > —
> > > 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:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>

> For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds…
> Visit http://in.finance.yahoo.com/
>
> —
> 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