How can I make timeout = 1 second for wait_event_timeout function?
Function : wait_event_timeout (wq,condition,timeout);
How can I make timeout = 1 second.
And if call function like that : wait_event_timeout(queue,flag!='n',30*HZ);
timeout =???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The function wait_event_timeout takes its timeout value in jiffies. Use the constant
HZ(number of timer ticks per second) to specify time in jiffies. The expressionHZis the equivalent of one second. The expression30 * HZis the equivalent of 30 seconds.