tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Is there a way to obtain a machine's cache line size?
On 20 Jan 2011, at 11:59 , Dennis Ferguson wrote:
> Is there a way to obtain the correct cache line size for the machine
> code is running on, both in the kernel and at user level?
I found it. It is "coherency_unit" in the kernel (it is an
appropriately small number, rather than the cache line size,
in uniprocessor kernels), but doesn't seem to be exposed outside
of there.
Dennis Ferguson
Home |
Main Index |
Thread Index |
Old Index