summaryrefslogtreecommitdiff
path: root/Kernel/Net/E1000NetworkAdapter.h
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-27 17:49:56 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-10-01 17:22:17 +0000
commit2770433d300e0892498014173f57794291e3f4ba (patch)
tree8192486c7e88c8f6889c4fa0192e9371484e07ef /Kernel/Net/E1000NetworkAdapter.h
parent33a9f908a6bd56f5a52550b9208365b5ac0d5a07 (diff)
downloadserenity-2770433d300e0892498014173f57794291e3f4ba.zip
Kernel: Convert network adapter names to Kernel::KString
Another step of incremental progress of removing `AK::String` from the kernel, to harden against OOM.
Diffstat (limited to 'Kernel/Net/E1000NetworkAdapter.h')
-rw-r--r--Kernel/Net/E1000NetworkAdapter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/E1000NetworkAdapter.h b/Kernel/Net/E1000NetworkAdapter.h
index c8fe19ce91..e695e4fd07 100644
--- a/Kernel/Net/E1000NetworkAdapter.h
+++ b/Kernel/Net/E1000NetworkAdapter.h
@@ -20,7 +20,7 @@ class E1000NetworkAdapter : public NetworkAdapter
, public PCI::Device
, public IRQHandler {
public:
- static RefPtr<E1000NetworkAdapter> try_to_initialize(PCI::DeviceIdentifier const&);
+ static RefPtr<E1000NetworkAdapter> try_to_initialize(PCI::DeviceIdentifier const&, NonnullOwnPtr<KString>);
virtual bool initialize();
@@ -37,7 +37,7 @@ protected:
void setup_interrupts();
void setup_link();
- E1000NetworkAdapter(PCI::Address, u8 irq);
+ E1000NetworkAdapter(PCI::Address, u8 irq, NonnullOwnPtr<KString>);
virtual bool handle_irq(const RegisterState&) override;
virtual StringView class_name() const override { return "E1000NetworkAdapter"sv; }