Lines Matching defs:Registration
4 //! This module provides types like [`Registration`] and
59 /// `Registration`.
129 /// The following is an example of using `Registration`. It uses a
143 /// use kernel::irq::{self, Flags, IrqRequest, IrqReturn, Registration};
168 /// ) -> Result<Arc<Registration<Data>>> {
169 /// let registration = Registration::new(request, Flags::SHARED, c"my_device", handler);
184 pub struct Registration<T: Handler> {
197 impl<T: Handler> Registration<T> {
210 // INVARIANT: `this` is a valid pointer to the `Registration` instance
264 // SAFETY: `ptr` is a pointer to `Registration<T>` set in `Registration::new`
265 let registration = unsafe { &*(ptr as *const Registration<T>) };