Re: [PATCH V10 13/15] rust: cpufreq: Extend abstractions for driver registration
From: Viresh Kumar
Date: Wed Apr 16 2025 - 06:17:44 EST
On 16-04-25, 11:04, Danilo Krummrich wrote:
> You need to justify why drv is a valid pointer to be passed to
> cpufreq_register_driver(), i.e. something like
>
> // SAFETY:
> // - `drv` comes from Self::VTABLE and hence is a valid pointer to a `struct cpufreq_driver`,
> // - `cpufreq_register_driver()` never attempts to modify the data `drv` points to
The cpufreq core can try to change the data pointed by `drv`. For now
it updates the `cpufreq_driver->boost_enabled` flag.
--
viresh