Struct kernel::gpio::RegistrationWithIrqChip
source · [−]pub struct RegistrationWithIrqChip<T: ChipWithIrqChip> { /* private fields */ }
Expand description
A registration of a gpio chip that includes an irq chip.
Implementations
sourceimpl<T: ChipWithIrqChip> RegistrationWithIrqChip<T>
impl<T: ChipWithIrqChip> RegistrationWithIrqChip<T>
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new RegistrationWithIrqChip
but does not register it yet.
It is allowed to move.
sourcepub fn register<U: Chip<Data = T::Data>>(
self: Pin<&mut Self>,
gpio_count: u16,
base: Option<i32>,
parent: &dyn RawDevice,
data: T::Data,
parent_irq: u32,
lock_keys: [&'static LockClassKey; 2]
) -> Result
pub fn register<U: Chip<Data = T::Data>>(
self: Pin<&mut Self>,
gpio_count: u16,
base: Option<i32>,
parent: &dyn RawDevice,
data: T::Data,
parent_irq: u32,
lock_keys: [&'static LockClassKey; 2]
) -> Result
Registers a gpio chip and its irq chip with the rest of the kernel.
Users are encouraged to use the gpio_irq_chip_register
macro because it
automatically defines the lock classes and calls the registration function.
Trait Implementations
sourceimpl<T: ChipWithIrqChip> Default for RegistrationWithIrqChip<T>
impl<T: ChipWithIrqChip> Default for RegistrationWithIrqChip<T>
impl<T: ChipWithIrqChip> Send for RegistrationWithIrqChip<T>where
T::Data: Send,
impl<T: ChipWithIrqChip> Sync for RegistrationWithIrqChip<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for RegistrationWithIrqChip<T>
impl<T> !Unpin for RegistrationWithIrqChip<T>
impl<T> UnwindSafe for RegistrationWithIrqChip<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more