Page 1 of 1

nanosleep

Posted: Thu Sep 04, 2008 11:51 pm
by hidnplayr
I'd need a kernel function to wait 100 microseconds.
So i want the kernel to do something else for 100uS and then return to my program, is it possible?

any help would be apreciated

Re: nanosleep

Posted: Fri Sep 05, 2008 12:42 pm
by hidnplayr
Ok, i apparantly have found another way around this problem.
My idea was probably silly anyway :)

Re: nanosleep

Posted: Sat Apr 07, 2012 4:19 am
by Mario
f.68.1 likely to help? But it is not guaranteed.

Better late than never. :wink:

Re: nanosleep

Posted: Sat Apr 07, 2012 11:08 am
by hidnplayr
IIRC, this question was related to in-driver code. The solution I remember was to read a reg from the PCI device, it always takes a certain amount of time.

Re: nanosleep

Posted: Sat Apr 07, 2012 11:26 am
by art_zh
A driver can read available system real-time resources easily.

rdtsc for shortest (sub-microsecond) delays, or
northbridge realtime counters (1-100 microseconds)