lkml.org 
[lkml]   [1999]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: long long in kernel
From
Date
>>>>> "Bryan" == B James Phillippe <bryan@terran.org> writes:

Bryan> On 6 May 1999, Jes Sorensen wrote:
>> I am curious, what sorta device requires 64 bit entities on a 32
>> bit architecture?

Bryan> Some pieces of the kernel are using it; struct file_operations,
Bryan> for instance. However, the driver I was referring to uses a
Bryan> long long as a byte counter. I'll have to look closer to
Bryan> determine the extent of the performance requirement (if any).

I see, what I would do is to use a special datatype for this (typedef)
and define macros to operate on it. You might want to look at how this
is dealt with in the AceNIC driver (I stole the idea from someone, but
I cannot remember who, sorry), take a look at drivers/net/acenic.[ch]

Jes

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.126 / U:0.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site