Date: Mon, 28 Nov 2016 09:30:47 +0100 From: Ed Schouten <ed@nuxi.nl> To: Mateusz Guzik <mjguzik@gmail.com> Cc: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Re: __read_only in the kernel Message-ID: <CABh_MKnPwmALT6Bj_y5xUikYbrKsFykvFQ3Fk-921eSAgi_yVw@mail.gmail.com> In-Reply-To: <20161127212503.GA23218@dft-labs.eu> References: <20161127212503.GA23218@dft-labs.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Mateusz, 2016-11-27 22:25 GMT+01:00 Mateusz Guzik <mjguzik@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@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKnPwmALT6Bj_y5xUikYbrKsFykvFQ3Fk-921eSAgi_yVw>