Lines Matching defs:Registration
120 /// Once the `Registration` structure is dropped, the device is unregistered.
121 pub struct Registration<T: Driver>(ARef<drm::Device<T>>);
123 impl<T: Driver> Registration<T> {
124 /// Creates a new [`Registration`] and registers it.
132 /// Same as [`Registration::new`}, but transfers ownership of the [`Registration`] to
146 let reg = Registration::<T>::new(drm, flags)?;
157 // SAFETY: `Registration` doesn't offer any methods or access to fields when shared between
159 unsafe impl<T: Driver> Sync for Registration<T> {}
161 // SAFETY: Registration with and unregistration from the DRM subsystem can happen from any thread.
162 unsafe impl<T: Driver> Send for Registration<T> {}
164 impl<T: Driver> Drop for Registration<T> {
167 // `Registration` also guarantees the this `drm::Device` is actually registered.