linux-origin
[Top] [All Lists]

unsigned long jiffies

To: "linux-origin" <linux-origin@xxxxxxxxxxx>
Subject: unsigned long jiffies
From: "John Hawkes" <hawkes@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 22 May 2000 15:17:31 -0700
Sender: owner-linux-origin@xxxxxxxxxxx
Is there a reason, other than historical, why "jiffies" is "unsigned
long"?  Isn't that a 64-bit type in a 64-bit kernel?

A more general question: I have an application that gets information
from the kernel through a read of a /proc node, formatted via a struct
that has fields that are typed in ways that change in size, depending
upon whether it's dealing with a 32-bit kernel or a 64-bit kernel.  I'd
like to be able to have this 32-bit app work with a 64-bit kernel.  Is
there a general protocol to support this?

John


<Prev in Thread] Current Thread [Next in Thread>