diff options
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r-- | Kernel/FileSystem/Inode.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h index 775e4ad020..7351e892e2 100644 --- a/Kernel/FileSystem/Inode.h +++ b/Kernel/FileSystem/Inode.h @@ -66,8 +66,7 @@ public: virtual ErrorOr<int> get_block_address(int) { return ENOTSUP; } - LocalSocket* socket() { return m_socket.ptr(); } - const LocalSocket* socket() const { return m_socket.ptr(); } + RefPtr<LocalSocket> bound_socket() const; bool bind_socket(LocalSocket&); bool unbind_socket(); @@ -117,7 +116,7 @@ private: FileSystem& m_file_system; InodeIndex m_index { 0 }; WeakPtr<Memory::SharedInodeVMObject> m_shared_vmobject; - RefPtr<LocalSocket> m_socket; + RefPtr<LocalSocket> m_bound_socket; SpinlockProtected<HashTable<InodeWatcher*>> m_watchers; bool m_metadata_dirty { false }; RefPtr<FIFO> m_fifo; |