mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
Kernel: Make SysFS and ProcFS generator functions return KResult
This allows us to propagate a whole bunch of KBufferBuilder errors.
This commit is contained in:
parent
2065ced8f6
commit
9db8a14264
5 changed files with 55 additions and 63 deletions
|
@ -33,7 +33,7 @@ protected:
|
|||
NonnullRefPtr<USB::Device> m_device;
|
||||
|
||||
private:
|
||||
bool output(KBufferBuilder& builder);
|
||||
KResult try_generate(KBufferBuilder&);
|
||||
virtual KResult refresh_data(FileDescription& description) const override;
|
||||
mutable Mutex m_lock { "SysFSUSBDeviceInformation" };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue