Results 1 to 5 of 5
i found this function in some code: interruptible_sleep_on_timeout(&usbdriver->writewait, timeout) i am trying to find out what the unit is for timeout in this particular function... looking for it on google ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-06-2006 #1Just Joined!
- Join Date
- Feb 2006
- Posts
- 13
value of timeout in interruptible_sleep_on_timeout(&usbdriver->writewait, timeout)
i found this function in some code: interruptible_sleep_on_timeout(&usbdriver->writewait, timeout) i am trying to find out what the unit is for timeout in this particular function... looking for it on google is a big headache. any ideas??
- 04-06-2006 #2Just Joined!
- Join Date
- Feb 2006
- Posts
- 13
ok i found out its in jiffies... and apparantly jiffies are different for different OS? any idea what it might be in SuSE 9.3?
- 04-06-2006 #3
I had to look this one up.
http://www.kernelnewbies.org/glossary/#J
http://kerneltrap.org/node/2202
http://www.msg.ucsf.edu/local/progra...s/jiffies.html
Apparently a "jiffy" is about 10ms.Registered Linux user #270181
TechieMoe's Tech Rants
- 04-06-2006 #4Just Joined!
- Join Date
- Feb 2006
- Posts
- 13
do you think it is possible that the value of a jiffy in the 2.6 kernel could be different from what it is defined as in the 2.4?
- 04-06-2006 #5Just Joined!
- Join Date
- Feb 2006
- Posts
- 13
well you might be interested to know that in the 2.6 kernel a HZ is defined as 1000 jiffies as opposed to 100 in the 2.4 kernel just to make everyones lives a bit more complicated.
sorry about the double posting.


Reply With Quote
