__read_only in the kernel

Ed Schouten ed at nuxi.nl
Mon Nov 28 08:31:19 UTC 2016


Hi Mateusz,

2016-11-27 22:25 GMT+01:00 Mateusz Guzik <mjguzik at gmail.com>:
> The somewhat standard way of combating parts of it for frequently read
> and rarely (if ever) modified variables is an annotation which puts
> them in a dedicated part of the binary and the somewhat standard name
> for a macro doing the work is __read_mostly.

Out of curiosity, what is the advantage of doing this?

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


More information about the freebsd-arch mailing list