Lines Matching defs:Registration
834 /// CPU frequency driver Registration.
896 /// cpufreq::Registration::<SampleDriver>::new_foreign_owned(pdev.as_ref())?;
902 pub struct Registration<T: Driver>(KBox<UnsafeCell<bindings::cpufreq_driver>>, PhantomData<T>);
904 /// SAFETY: `Registration` doesn't offer any methods or access to fields when shared between threads
906 unsafe impl<T: Driver> Sync for Registration<T> {}
909 /// SAFETY: Registration with and unregistration from the cpufreq subsystem can happen from any
911 unsafe impl<T: Driver> Send for Registration<T> {}
913 impl<T: Driver> Registration<T> {
1040 // SAFETY: `drv` is guaranteed to be valid for the lifetime of `Registration`.
1046 /// Same as [`Registration::new`], but does not return a [`Registration`] instance.
1048 /// Instead the [`Registration`] is owned by [`devres::register`] and will be dropped, once the
1059 impl<T: Driver> Registration<T> {
1392 impl<T: Driver> Drop for Registration<T> {
1395 // SAFETY: `self.0` is guaranteed to be valid for the lifetime of `Registration`.