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
nanosleep
-
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
Ok, i apparantly have found another way around this problem.
My idea was probably silly anyway
My idea was probably silly anyway
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
f.68.1 likely to help? But it is not guaranteed.
Better late than never.
Better late than never.
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.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
A driver can read available system real-time resources easily.
rdtsc for shortest (sub-microsecond) delays, or
northbridge realtime counters (1-100 microseconds)
rdtsc for shortest (sub-microsecond) delays, or
northbridge realtime counters (1-100 microseconds)
Who is online
Users browsing this forum: No registered users and 2 guests