Sorry.. I am not getting what you are trying to say...What do you mean by reference counter here.?? I am a software person... I am using the Coyote IXP425 platform from ADI..!!..
This is the OSTS register on your platform. It is a free-running timer.
I tried to read the OSTS register to get the number of clock ticks.From
kernel space i could do it. but from user space i couldnt ..i am getting compilation errors when i try to include asm/hardware.h from user space.
Is there anyway out?
You could write a character device driver that reads this timer in kernel space and passes it to your application via the read() call.
Catalin
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/