mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
Kernel/DevFS: Use KString for DevFSDeviceInode::m_name
This commit is contained in:
parent
0d89cfcd9a
commit
a3f58a5003
2 changed files with 11 additions and 9 deletions
|
@ -73,8 +73,7 @@ public:
|
|||
virtual ~DevFSDeviceInode() override;
|
||||
|
||||
private:
|
||||
String determine_name() const;
|
||||
DevFSDeviceInode(DevFS&, const Device&);
|
||||
DevFSDeviceInode(DevFS&, Device const&, NonnullOwnPtr<KString> name);
|
||||
// ^Inode
|
||||
virtual KResultOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer& buffer, FileDescription*) const override;
|
||||
virtual InodeMetadata metadata() const override;
|
||||
|
@ -82,7 +81,7 @@ private:
|
|||
virtual KResult chown(uid_t, gid_t) override;
|
||||
|
||||
NonnullRefPtr<Device> m_attached_device;
|
||||
String m_cached_name;
|
||||
NonnullOwnPtr<KString> m_name;
|
||||
|
||||
uid_t m_uid { 0 };
|
||||
gid_t m_gid { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue