Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2012, 06:38 AM
|
#1
|
LQ Newbie
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23
Rep:
|
Reading the value of Jiffies from User Space
Hi,
I want to read the value of jiffies from user space. I understand that the value of jiffies can be read from the Kernel space. Is there a way to achieve this from the user space? Are there any ioctl calls that I can make use of?
Thanks once again
|
|
|
04-24-2012, 03:23 PM
|
#2
|
LQ Newbie
Registered: Apr 2012
Location: Cyberspace
Posts: 26
Rep: 
|
Why do you want to jiffy your userspace? What are you counting your CPU frequency?
|
|
|
05-03-2012, 12:02 AM
|
#3
|
LQ Newbie
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23
Original Poster
Rep:
|
"The global variable jiffies holds the number of ticks that have occurred since the system booted. On boot, the kernel initializes the variable to zero, and it is incremented by one during each timer interrupt."
I need to know the time since the last boot and I need this value with a good degree of resolution such as ms (eg 10ms). I have also searched on the net and now found that we cannot read the values of jiffies from User space. However I just wanted to confirm this. I mean is there any or some possibility by which one can get hold and if possible even change this data from User space.
|
|
|
08-12-2012, 11:55 PM
|
#4
|
LQ Newbie
Registered: Apr 2011
Distribution: Ubuntu, RedHat, Fedora, Customised Linux Kernels
Posts: 23
Original Poster
Rep:
|
Well after a lot of reading, I understand that we cannot access the jiffies value from user space. But coming back to the requirement, a good workaround as I understand is to shoot a timer as the appointed time (preferbly at startup) and let it run continuously. We can then probe this timer at run time, to find the time since the Embedded System has been up.
|
|
|
All times are GMT -5. The time now is 02:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|