diff options
author | Liav A <liavalb@gmail.com> | 2023-04-05 13:21:11 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-04-14 19:24:54 +0200 |
commit | b02ee664e7f62e19c48657034e779c53d11325a9 (patch) | |
tree | d5238be614caba8b365c7d9833ff0146655ddf52 /Kernel/Devices/Device.h | |
parent | dd7633c5f418952390d056146510040d08125ee4 (diff) | |
download | serenity-b02ee664e7f62e19c48657034e779c53d11325a9.zip |
Kernel: Get rid of *LockRefPtr in the SysFS filesystem code
To do this we also need to get rid of LockRefPtrs in the USB code as
well.
Most of the SysFS nodes are statically generated during boot and are not
mutated afterwards.
The same goes for general device code - once we generate the appropriate
SysFS nodes, we almost never mutate the node pointers afterwards, making
locking unnecessary.
Diffstat (limited to 'Kernel/Devices/Device.h')
-rw-r--r-- | Kernel/Devices/Device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h index 32c8874559..371e6ac041 100644 --- a/Kernel/Devices/Device.h +++ b/Kernel/Devices/Device.h @@ -96,10 +96,10 @@ private: protected: // FIXME: This pointer will be eventually removed after all nodes in /sys/dev/block/ and // /sys/dev/char/ are symlinks. - LockRefPtr<SysFSDeviceComponent> m_sysfs_component; + RefPtr<SysFSDeviceComponent> m_sysfs_component; - LockRefPtr<SysFSSymbolicLinkDeviceComponent> m_symlink_sysfs_component; - LockRefPtr<SysFSDirectory> m_sysfs_device_directory; + RefPtr<SysFSSymbolicLinkDeviceComponent> m_symlink_sysfs_component; + RefPtr<SysFSDirectory> m_sysfs_device_directory; }; } |