I am porting a NT driver and app into linux... Currently i am having a
problem in the application part... The scenario is as follows..
I have a function foo(param1, timeout)... what this function has to do is
wait for param1 to be set true.. ie wait for this varibale to be set till
the timeout expires.. so if the timeout expires before this varibale is set
it will retrun a TIMEDOUT return value... otherwise a success.... The value
of param1 is set by the driver.....(a async processing).
In NT this can be done with a single API call for waitForSingleObject....
how do i do this in LINUX.... Should i go for the timer?? ... or say
implement this via a thread and all??... any suggestion or pointers where to
look???? i would like to have a method which is efficient ie of less cpu
usage.. pls help...
thanks in advance
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
Please read the FAQ at http://www.tux.org/lkml/