mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
Kernel: Store IRQControllers in NonnullRefPtrs instead of RefPtrs
These are always non-null, so there's no point in storing them in a nullable container.
This commit is contained in:
parent
176989d811
commit
9abbeff79f
8 changed files with 13 additions and 15 deletions
|
@ -20,14 +20,14 @@ public:
|
|||
|
||||
static u8 acquire_mapped_interrupt_number(u8 original_irq);
|
||||
|
||||
Vector<LockRefPtr<IRQController>> const& controllers();
|
||||
LockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
|
||||
Vector<NonnullLockRefPtr<IRQController>> const& controllers();
|
||||
NonnullLockRefPtr<IRQController> get_responsible_irq_controller(u8 interrupt_vector);
|
||||
|
||||
private:
|
||||
InterruptManagement() = default;
|
||||
void find_controllers();
|
||||
|
||||
Vector<LockRefPtr<IRQController>> m_interrupt_controllers;
|
||||
Vector<NonnullLockRefPtr<IRQController>> m_interrupt_controllers;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue